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') #filel = open(r'C:\Users\Administrator\Desktop\test.txt','r',encoding='utf-8')
a = filel.read() #a = filel.read()
print(a) #print(a)
filel.close() #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: with open(r'C:\Users\Administrator\Desktop\test.txt','r',encoding='utf-8') as filel:
a = filel.read() for data in filel:
print(a) print(data)
\ No newline at end of file
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