|
Pythonista on iOS is a neat piece of kit if you enjoy hobbyist Python development. Ver 2.0 exposes obj-C APIs so you can look up phone battery status, read in current GPS location, interact with Bluetooth devices (e.g., read in BPM from a BT heart rate monitor). On the newer iPhones, you can also tie scripts to 3D touch shortcuts which makes app-replacement py scripts plausible. I spent a couple hours writing a decent Japanese ebook reader with auto-generated translations shown side-by-side.
|
# ¿ Jan 20, 2016 21:47 |
|
|
# ¿ May 14, 2024 09:40 |
|
a, *_, b = [1, 2, 3, 4, 5, 6] works
|
# ¿ Feb 3, 2017 12:29 |
|
the convention is 4 spaces
|
# ¿ Feb 13, 2017 15:37 |
|
Easy way to count the number of elements being referenced for one thing.
|
# ¿ Feb 20, 2017 02:15 |