Code: Alles auswählen
for i in range(7):
programm = i
pfad = "/home/prince/work/python/"
dateiname="bla.txt"
datei = pfad+dateiname
out_file = open(datei,"w")
out_file.write(programm)
out_file.close()
print "ende"
Code: Alles auswählen
prince@prince:~/work/python$ py test2.py
File "test2.py", line 4
programm = i
^
was ist daran falsch ?
cya The_ride
danke für die antworten im vorraus
Edit (Leonidas): Code in Python-Tags gesetzt.