Commit eafe82ca by BellCodeEditor

auto save

parent 9c09f480
Showing with 6 additions and 4 deletions
with open(r"C:\Users\maku\Desktop\book.txt",'a',encoding="utf-8")as fee:
fee.write('小强:12本\n')
fee.write('李明:15本\n')
\ No newline at end of file
with open(r"C:\Users\maku\Desktop\book.txt",'r',encoding="utf-8")as fee:
for i in fee:
if '小兰:12本'in i:
print('小兰是个傻逼')
\ 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