herro,noob 程序员在这里面临着相当的困境,试图从终端运行一个简单的 python 脚本,它完全一样
文件名=test.py
from sys import argv
script, food, echo, tree=argv
print("the script is called:", script)
print("the first variable is called:", food)
print("the second variable is called:", echo)
print("blah blah third is:", tree)
(脚本结束)
在终端
python3.7 test.py 1 2 3
当我在空闲时按回车时,我只是不断收到“valueError:没有足够的值来解压)
这让我彻底疯了,感谢您的帮助,谢谢!