提问人:gundamepyon 提问时间:11/16/2023 最后编辑:Barmargundamepyon 更新时间:11/16/2023 访问量:39
如何在cmd(win10)中执行python代码 [已关闭]
How can I execute python code in cmd(win10) [closed]
问:
我想通过cmd(win10)执行python代码
file name : hello.py
directory : C:/test/hello.py
hello.py
def hello(arg)
return 'Hi' +arg
我不了解python。但我必须在cmd上执行。 请帮帮我。
只能使用 cmd。
我需要cmd命令行
答: 暂无答案
评论
python c:\test\hello.py
"F:\ull\PathTo\python.exe" "C:\test\hello.py"