Commit 4d7faf08 by BellCodeEditor

save project

parent 20333d0d
Showing with 11 additions and 7 deletions
filel = open(r'C:\Users\Administrator\Desktop\test.txt','r',encoding='utf-8')
a = filel.read()
print(a)
filel.close()
#filel = open(r'C:\Users\Administrator\Desktop\test.txt','r',encoding='utf-8')
#a = filel.read()
#print(a)
#filel.close()
#with open(r'C:\Users\Administrator\Desktop\test.txt','r',encoding='utf-8') as filel:
#a = filel.read()
#print(a)
with open(r'C:\Users\Administrator\Desktop\test.txt','r',encoding='utf-8') as filel:
a = filel.read()
print(a)
\ No newline at end of file
for data in filel:
print(data)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment