| 44215 - from Aolin , 12 y.o. (China) - 2021-06-26 Computers : "Some problem of Python !"
|
Can you solve the problem? I have been confused for a long time! :P
The code is written like this:
class account:
def __init__(self,filename):
self.userName = userName
self.birthday = birthday
self.filename = filename
def load(self):
f = open('C:\\Users\\Public\\settings.cfg')
f.write(str(self.userName)+\n+str(self.birthday)) < ----The error
f.close()
And the error says:'SyntaxError: unexpected character after line continuation character'
How do I do? I hope you can help me! |