2024-10-05 14:29:01 发布
网友
下面的屏幕截图显示了LabVIEW框图和输出。在
这是输出文本。在
Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\sesa351813\Desktop\ajay\python>More?
直接执行python而不要通过Windows命令行。将c:\full\path\to\python替换为系统上安装的任何位置。在
python
c:\full\path\to\python
使用系统执行六您应该将要执行的内容传递到“命令行”连接器。如果从命令shell运行,则需要在命令前面加上“cmd /c”。要获取目录列表,可以使用:
cmd /c
在您的例子中,如果您传递字符串'cmd /c python hello.py',那么它应该正确执行。在
cmd /c python hello.py
直接执行
python
而不要通过Windows命令行。将c:\full\path\to\python
替换为系统上安装的任何位置。在方块图
输出
使用系统执行六您应该将要执行的内容传递到“命令行”连接器。如果从命令shell运行,则需要在命令前面加上“
cmd /c
”。要获取目录列表,可以使用:在您的例子中,如果您传递字符串'
cmd /c python hello.py
',那么它应该正确执行。在相关问题 更多 >
编程相关推荐