Commit cef09b8f by BellCodeEditor

save project

parent 69939d60
Showing with 4 additions and 3 deletions
with open(r'C:\Users\Administrator\Desktop\tt.txt','w',encoding='utf-8')as a:
a.write("小黄: 10\n小张: 20\n")
\ No newline at end of file
with open(r'C:\Users\Administrator\Desktop\tt.txt','r',encoding='utf-8')as a:
for i in a:
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