In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to use a mobile phone to run Python code". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to run Python code on a mobile phone".
1. Installation
Installation is very simple, after download and ordinary software installation, you can directly get the software at the end of the text, as shown in the picture is being downloaded.
When the download is complete, you will be prompted to write Python2 code or Python3 code.
2. How to use it?
Before introducing the software, let's look at the main interface of the software. Here are some commonly used menus. Let me briefly introduce them to you.
Terminal: similar to the cmd window on a computer, you can enter the Python code directly after opening it
Editor: if you have multiple lines of code to write, you can directly open the "editor". Finally, you can save the written Python script as a ".py" file for us to call later.
File: we can read the Python script files written by ourselves or those written by others from here.
QR code: we can convert our own Python script into a QR code on the computer, then click on the QR code here, scan the converted QR code, and we can directly get the code you wrote on the computer.
Let's give you a demonstration for each menu.
3. Terminal
Stand-alone "terminal", the following interface will appear. From the figure below, we can see that the version of Python is 3.6.6, and then we write a list splicing code.
4. Editor
Click "Editor" and we can enter our Python script in this interface. As follows, we have written a simple Python script. Remember to click the "Save button" when it is finished.
After clicking Save, we will be prompted to name the Python script file, where I call it "name.py".
After clicking Save again, directly click run (find in the menu bar below), you can jump directly to the terminal to run.
5. Files
After all, it is a mobile Python editor, and the files must be in the same file directory as the Python environment, so there is no need for us to use any relative or absolute paths. after all, it is too inconvenient to get these on the phone.
As can be seen from the picture above: the "name.py" script file we saved before is clearly placed here.
6 、 QPYPI
With regard to the menu of the QR code, I won't show you here. Let's go down and try it on your own. Let's take a look at how to install the third-party extension library.
Click "QPYPI", click "AIPY", you can see that there are many frequently used libraries below, and we will download any library we need.
The following picture shows the pandas library being downloaded.
Thank you for reading, the above is the content of "how to run Python code on mobile phone". After the study of this article, I believe you have a deeper understanding of how to run Python code on mobile phone, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.