我正在使用Learn Python The Hard Way 学习 Python。这是非常好的和高效的,但有一次我崩溃了。我在网上搜索过,但找不到答案。这是我的问题:
其中一项练习告诉你这样做:
from sys import argv
script, filename = argv
然后它继续做我理解的事情:
print "we are going to erase %r." % filename
print "if you don't want that, hit CTRL-C (^C)."
print "if you do want that, hit RETURN."
raw_input("?")
print "opening the file..."
target = open(filename, 'w')
第一部分是什么意思?
PS我得到的错误是:
syntaxError 行继续字符后的意外字符