0

What #open# should we use to read a txt file inside python.py ?

open("filename txt", "r")

10th Sep 2021, 3:17 PM
Gen Lao
Gen Lao - avatar
2 odpowiedzi
0
txt file exist inside the project, but can't be found , # ..._ooo= open("file.txt" "r") print(..._ooo.readable) don't work
10th Sep 2021, 4:32 PM
Gen Lao
Gen Lao - avatar
0
Use a comma to separate file name and mode. ''' _ooo= open("file.txt","r") print(_ooo.readable) ''' And """ ..._ooo= open("file.txt" "r") """ This is not a correct syntax.
11th Sep 2021, 7:20 AM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar