#argv无法解包是什么意思
from sys import argv
script, first, second, third = argv
print("The script is called:",script)
print("Your first variable is:", first)
print("Yout second variable is:", second)
print("Yout third variable is:", third)
运行结果提示错误:
Traceback (most recent call last):
File "D:/HQZ/Exercise/Ex13.py", line 2, in
script, first, second, third = argv
ValueError: not enough values to unpack (expected 4, got 1)
argv无法解包,萌新求解答
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-