【发布时间】:2015-10-22 03:16:34
【问题描述】:
在这一行的撇号上出现语法错误
def filecopy('example.txt','output.txt'): #<- Error here on the "'"
infile = open('example.txt',)
text = infile.read()
infile.close()
infile = open('output.txt')
outfile.write(text)
infile.close()
【问题讨论】:
-
不应该是变量名吗?
标签: python function python-3.x