helldrg Asked:2022-10-06 17:44:55 +0000 UTC2022-10-06 17:44:55 +0000 UTC 2022-10-06 17:44:55 +0000 UTC 如何运行程序 772 php 中有一个命令exec,但是 django 中有一个类似的命令吗?是否可以从 static/program.exe 文件夹运行? python 1 个回答 Voted Best Answer nomnoms12 2022-10-06T17:51:10Z2022-10-06T17:51:10Z 您可以使用os.system在系统 shell 中执行任意命令的函数。 例子: import os os.system(r'static\program.exe')
您可以使用
os.system
在系统 shell 中执行任意命令的函数。例子: