Commit fcfc5360 by BellCodeEditor

save project

parent 72065b17
Showing with 11 additions and 1 deletions
with.open(r"C:\Users\huawei\Desktop\学习工具test.txt",'a',encoding='utf-8')as filel: with.open(r"C:\Users\huawei\Desktop\学习工具test.txt",'a',encoding='utf-8')asfilel:
# filel.write('小兰:12本\n') # filel.write('小兰:12本\n')
# filel.write('小丽:11本\n') # filel.write('小丽:11本\n')
# filel.write('李文:9本\n') # filel.write('李文:9本\n')
......
filel=open(r"C:\Users\huawei\Desktop\test.txt",'r',encoding='utf-8')
a=filel.read()
print(a)
filel.close()
with open(r"C:\Users\huawei\Desktop\test.txt",'r',encoding='utf-8')as filel1:
a=filel1.read()
print(a)
\ 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