小编Inq*_*eSu的帖子

如何在Python 3.x中传递命令行参数?

我没有得到这个程序的期望输出?

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)
Run Code Online (Sandbox Code Playgroud)

如何使用cmd传递这些参数?

python-3.x

17
推荐指数
1
解决办法
3万
查看次数

标签 统计

python-3.x ×1