I read the book and found that android can run python.
Try it.
First of all, you need to install the python environment on your mobile phone. This is achieved by installing an apk. This apk is called QPython, and there are similar ones such as SL4A.
QPython official website: https://www.qpython.com/
You can download the QPython installation package on the official website and install it on your mobile phone.
adb install XXXX.APK
QPython tutorial: https://www.qpython.org/en/guide_howtostart.html
Execute QPython’s default python Script
Execution result
After uploading the local python script to the mobile phone, Can be executed in the terminal.
adb push C:\Users\user\Desktop\testReport\batDoc\settingsTest.py /storage/emulated/ 0/qpython/scripts3
After the upload is successful, click on the program on the homepage and select the python script uploaded by yourself.
adb install XXXX.APK
adb push C:\Users\user\Desktop\testReport\batDoc\settingsTest.py /storage/emulated/0 /qpython/scripts3