Ako opraviťchyba hodnoty v Pythone

Príklady kódu

0
0

ako opraviťchyba hodnoty v Pythone


filename = "language.txt"
#open file for writing
fileHandler = open (filename, "w")

#Add some text
fileHandler.write("Bash\n")
fileHandler.write("Python\n")
fileHandler.write("PHP\n")

#close the file
fileHandler.close()

#open file the  file and read the data

filehandler = open(filename, "r")

#Read the  file by line

for line in fileHandler:
    print(line)

#close the  file
fileHandler.close()

Podobné stránky

Podobné stránky s príkladmi

V iných jazykoch

Táto stránka je v iných jazykoch

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................