我是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
如何将参数传递给命令行?
答案 0 :(得分:3)
答案 1 :(得分:1)
this article对你有帮助吗?
您需要设置sys.argv的值。
engine.Sys.argv = List.Make(args);