![](/img/trans.png)
[英]Python : want to use the command line argument passed in python, as an argument to another command that will be executed within the python script
[英]Which python script is executed if directory path is passed as command line argument to python?
如果将目录作为参数传递给 python(例如,如果以这种方式调用 python: $ python3 Domoticz-Google-Assistant/
),将执行哪个脚本?
此致,
威瓦
如果你执行一个目录作为 python 的参数,名为__main__.py
的文件将被执行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.