Commit 7188adb2 by BellCodeEditor

save project

parent b4a16e54
Showing with 11 additions and 1 deletions
with open(r'c:\Users\Administrator\Desktop\a.txt','r',encoding='utf-8')as file1:
aaa=file1.readlines()
for i in aaa:
print(i)
\ No newline at end of file
with open(r'c:\Users\Administrator\Desktop\新建文本文档 (2).txt','r'encoding='utf-8')as file1:
with open(r'c:\Users\Administrator\Desktop\a.txt','r',encoding='GBK')as file1:
aaa=file1.readlines()
for i in aaa:
print(i)
\ 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