Forum about Hobbies - Computers
- Optional filter -
Text search :

modify delete 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!


44215 -
modify delete 45013 - Reply from idk (idk. maybe Russia) - 2023-01-16

how to program in python




Forum about Hobbies - Computers - (c) Etudiants du Monde / Students of the World
if any remark / question, please contact the webmaster:

https://StudentsOfTheWorld.info