Home >Backend Development >Python Tutorial >How to write python on ipad
ipad or mobile phone supports python code writing, so that we no longer have to stay in the office or sit at home in a serious manner. Let us write code more casually. When we write some lightweight code, we can do it anytime and anywhere.
So how to write python code on iPad? Here we recommend two software for different platforms.
iOS platform: Pythonista
Pythonista comes with automatic association, making it easier to type code on the mobile terminal.
Related recommendations: "Python Video Tutorial"
It is worth mentioning that the author has developed a set of libraries built into Pythonista inside, allowing Python syntax to call native controls on iOS.
For example, this clock with more than 40 lines of code:
For example, the brick-breaking game full of childhood memories:
In your spare time, you can take a look at how these small projects are written. Although Pythonista charges 68 yuan, it is worth the money.
Android platform: Termux
##Android mobile phone system is based on the Linux kernel, so you can use the terminal Class software to "enter" the core of the mobile phone. It is similar to the terminal on the computer. For example, if you enter ls, you can see all the files in the current directory. Enter python to enter the python environment, and the effect is better with the CodeBoard programming keyboard. (Use pkg install python to install python) There is no pressure to install the library. Enter pip install ptpython to install it.
The above is the detailed content of How to write python on ipad. For more information, please follow other related articles on the PHP Chinese website!