[英]Python code won't pause
I'm going through Zed Shaw's "Learning Python the hard way" , I'm on exercise 13 and I can't get python to pause so I can see what the code does. 我正在看Zed Shaw的“艰苦学习Python”,我正在练习13,我无法让python暂停,所以我可以看到代码的作用。
from sys import argv
script, first, second, third = argv
print "The script is called:", script
print "Your first variable is:", first
print "Your second variable is:", second
print "Your third variable is:", third
raw_input(' Press enter')
There is no problem with your script. 您的脚本没有问题。 You need to call the script with exactly 3 arguments.
您需要使用恰好3个参数调用脚本。 Otherwise it will throw an error.
否则会抛出错误。
For running the application with arguments: 使用参数运行应用程序:
python <yourpath>\\script.py arg1 arg2 arg3
python <yourpath>\\script.py arg1 arg2 arg3
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.