Forum Loisirs - Ordinateurs
- Filtre optionnel -
Recherche d'un mot :

modifier supprimer 44215 - de Aolin , 12 ans (China) - 2021-06-26
Ordinateurs : "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 -
modifier supprimer 45013 - Réponse de idk (idk. maybe Russia) - 2023-01-16

how to program in python




Forum Loisirs - Ordinateurs - (c) Etudiants du Monde / Students of the World
pour toute remarque / question, merci de contacter le webmaster :

https://StudentsOfTheWorld.info