Possible Duplicate:
How can I pass command-line arguments in IronPython?
我是 IronPython 和 Sharpdevelop 的新手,我正在尝试运行以下代码,
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
如何将参数传递到命令行?
最佳答案
在 SharpDevelop你
- 右键单击 python 项目
- 在上下文菜单中选择属性
- 选择调试选项卡
- 在命令行参数字段中附加您的参数
关于python - 如何传递命令行参数 IronPython,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12907167/