这段python2的argv代码为什么在python3就报错,错误是not enough values to unpack,
这段python2的argv代码为什么在python3就报错,错误是notenoughvaluestounpack,应该在修改呢?30Python2的argv代码from...
这段python2的argv代码为什么在python3就报错,错误是not enough values to unpack,应该在修改呢? 30
Python2的argv代码
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)
标签:
Python 展开
Python2的argv代码
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)
标签:
Python 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询