【发布时间】:2020-08-03 15:22:36
【问题描述】:
我正在使用 Learning Python the Hard Way。在我的学习过程中,我遇到了这个错误。虽然我从昨天开始就一直在尝试调试,但我做不到。 这是我的代码:
import sys
from sys import argv
script, first, second = argv
print('the script is called:', script)
print('the first variable is:', first)
print('the second vriable is:', second)
print('the third variable is:', third)
【问题讨论】:
-
您是如何尝试调试的?你传递了什么(以及多少个)参数?
-
third应该来自哪里?
标签: python