How to run python on a mobile phone, how to run python code on a mobile phone

Hello everyone, the editor will answer the question of how to run the mobile phone python programming software. Many people don't know how to run python on mobile phones, let's take a look now!

flbm1hkjk6.jpg

ad close

In December 2017, Cloud + Community was released to the outside world. From the very beginning of a technical blog to now, it has multiple community products. In the future, let's ride the wind and waves together and create infinite possibilities .

vnvmz6vjub.png

Preface To run python on a mobile phone, you need a software called qpython3l. Of course, there are other software that can run python, but I think qpython3l is a relatively good one. First of all, let me declare...terminal? This terminal is a python terminal, not linux, and can only execute python code. Editor? This editor can write py files in your mobile phone, or open existing py files, and then you can directly...

qhsp7x6643.png

Here is a software—qpython3, which integrates the python3 interpreter. It can run python on the command line or edit the source file. It supports code highlighting, syntax checking and other functions. Let me briefly introduce the installation and use of this software: Download qpython3, just search directly in the mobile application, as follows, about 12 megabytes, just click to download and install:? python programming software alt=python programming on the phone...

ivrkv9199u.png

In life, in addition to confessing to the gods and goddesses, you will also meet friends for birthdays, so the editor brings you a birthday greeting program for friends today. 2 Preparation This program is still written in python, and the third-party library uses pygame. The installation method runs the following code on the command line. The main steps of pip install pygame3 are first to import the required modules and initialize pygame: #import module import randomimport pygame...

5h36elmpsz.jpeg

So how to generate some real mobile phone numbers in batches as required? The purpose of this article is to take you to use python to generate mobile phone numbers in batches. 2Writing code To generate mobile phone numbers in batches, you first need to understand the composition rules of 11-digit mobile phone numbers, that is: mobile phone numbers have a total of 11 digits, and the value of the second digit starting with 1 is one of 3, 4, 5, 7, and 8 The third digit is based on the second digit, corresponding to the last 8 digits of the operator's generation rule...

qav79ckhk6.jpeg

It is actually a linux system emulator. After installing termux, you need to install python, and it is a full command line operation. Some readers have trouble using it. Amway today is a more friendly qpython. ? qpython is a python engine that can only run on the Android system. Compared with termux, it can be operated with a full graphical interface, which is very friendly. There is a built-in python editor, which can directly write python code on the phone, and supports indentation...

Function body as shown above Defining a function in python requires the def statement, writing the function name, parentheses, the argument list inside the parentheses, and the colon at once, and then writing the function body using indented blocks. No parameter function definition... Just like the mobile phone we use now, most people don't understand how the mobile phone is made, but this does not affect our use, we just use it as a tool. We can also think of functions as...

(This article is reprinted with the authorization of the original author, and cannot be reprinted twice) The rules in python Python is a language that is simple at first sight, but becomes more complex after deepening. Take the most important concept of "object" in python, for which python defines so many rules that you can't remember them all, for example: for objects that define the __str__ method, you can use the str() function to return a readable name definition Objects that have the __next__ and __iter__ methods can be...

qpython does not support the lxml module, but lxml is the lowest-level module in python, and it needs to be used whether it is a crawler or a document analysis. Therefore, termux came into being....termux can not only help you learn and use the linux system, but also can be used as a powerful tool for our python full-stack development by installing various plug-ins! Today I will show you how to play python crawler, jupyter notebook, git...

ozucibxvu2.png

Preface Recently, the editor encountered some practical difficulties when using mitmproxy agent to capture packets. Because I have read some blogs that introduce mitmproxy agent to capture packets, I will not introduce the steps of how to install mitmproxy. I will only introduce and solve the practical problems I encountered. , I hope it will be helpful to readers. (This blog is based on https:blog.csdn.netfei347795790articledetails107284720The solution to the problems encountered in the practice of this blog...

mhw94gpmwm.jpeg

Or use an ipad to connect an external keyboard. Mr. Marquis was once obsessed with this way of working. It is said that he can have a more focused and immersive programming experience. ? Today I will introduce 2 small tools that can write codes on mobile phones and ipads. ios platform: pythonista ? pythonista has its own automatic association, which is convenient for typing codes on the mobile terminal. ? It is worth mentioning that the author has developed a set of libraries built into pythonista, so that the python syntax can...

Performance analyzer cprofilecprofile is the default performance analyzer for python. It is a deterministic performance analyzer that provides a set of APIs to help developers collect information about the running of python programs. Count each function...event-based profiling Not all programming languages ​​support this type of performance analysis. The languages ​​that support this type of analysis mainly include: java:jvmti (jvm tools interface, jvm tool interface) provides performance.. .

47v084xlkm.png

The syntax of python is very concise, and it can be written just like writing English. It is not only simple but also can implement object-oriented programming efficiently. Compared with cc++java, you can write the same program with very little code, cross-platform, write once and run everywhere, without compiling, and run directly, and there are many framework packages to choose from. It can be used for web development, gui development, graphics development, web development, game development, mobile phone development, database...

89ertpjtl2.png

2s intercepts a two-digit string %10.2s10-digit placeholder, intercepts a two-digit string, and the basic knowledge about python strings is shared here. In the next section, we will continue to introduce the knowledge of regular expressions·end·Xiaoyu. ..== 11: # Generally, mobile phone numbers are 11 digits print (mobile phone number meets the requirements) else:print (mobile phone number does not meet the requirements) Case 03: Enter a paragraph, count uppercase letters, lowercase letters, numeric characters, Chinese characters ...

zt77wh2adz.png

Click the blue text above to follow us. The installation of jupyternotebook In the previous article, we introduced the installation of ipython. ipython is an interactive shell of python. Called ipython notebook) programming experience is more comfortable, it is an interactive notebook that supports more than 40 programming languages, the essence of jupyter notebook is a...

In the past two years, training institutions have begun to help you compile three-year work experience, because two-year work experience can no longer find any jobs. I have to say that knowing python is very different from eating with python. The domestic python environment is not good. It is very difficult to organize a python technology conference in Beijing. Many python developers with solid goods will not come out for activities. This has led to many newcomers wanting to enter the pit, but no one leads them and has no direction. Of course, if you want to learn python based on interest ...

Python is free, and at the same time, there are many communities that provide quick technical support for users' questions. Learning and using python technology is no longer a battle alone! 3. Portability The implementation of python is written in ANSI C, which can run on all current mainstream platforms. The python program can be run on mobile phones and pads, and the program packages under it are also portable. 4. Powerful From a feature point of view, python is a hybrid...

80rrmeqgit.png

Purpose: Use twilio to send text messages to your phone. Twilio is a cloud communications (PAAS) company based in California. Twilio allows developers to programmatically answer calls, send and receive text messages, etc. by using the APIs it provides. Let's take a look at the rendering first? Let's take a look at the code, isn't it rare? from twilio.rest import twiliorestclient # The value of the authentication information below can be found in your twilio account account...

Identification of this article: python_1 Editing of this article: jack Wind programming tools: anaconda, pycharm Reading time: 12 minutes Why are there so many training institutions for basic python learning? So many programmers? It's very simple. Because the threshold is low. ==. Do not believe it? Come and try it out. 1. Operating system (science popularization) Goal Understand the operating system and the schematic diagram of the application operating system interface? Then a computer without an operating system installed is a bare metal 2...

jmoyoffemb.jpeg

When you log in to your email account with your mobile NetEase mailbox, the password you fill in is not your login password, but the authorization password above. Similarly, sending emails with python also uses the authorization password, not the mailbox login password. 2. Writing an email program (1) The modules used in python To send emails, you need to master the usage of two modules, smtplib and email. These two modules come with python, and you only need to import them to use them. The smtplib module is mainly responsible for...

Non-blocking or asynchronous programming 5. Simple example 1.socket server#! usrbinenv python# -*- coding:utf-8 -*-# author:alex li#! usrbinenv python# -*- coding:utf-8 -* -#import socketserverimport socketserver,json,sys,subprocessclass myserver(socketserver.baserequesthandler):def handle(self): # print self.request,self...

Guess you like

Origin blog.csdn.net/mynote/article/details/132424513