简体   繁体   English

如何在termux中运行.py文件

[英]How to run .py file in termux

I already installed python in termux and don't know how to run.py file我已经在 termux 中安装了 python 并且不知道如何运行.py 文件

I typed python我输入python

It doesn't do anything.它什么也没做。 I already installed some packages.我已经安装了一些软件包。 I am new to termux我是termux的新手

WARP.py WARP.py

download下载

python python

Did you save your Python script as main.py in the downloads at the first screenshot?您是否在第一个屏幕截图的下载中将 Python 脚本保存为 main.py?

Then you may open the folder like you did in the second one of your screenshots and run the script with然后,您可以像在第二个屏幕截图中那样打开文件夹并运行脚本

python main.py

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM