Commit 0d85af8c by BellCodeEditor

save project

parent 19380911
Showing with 6 additions and 8 deletions
with open(file1.write('李文:9本\n') with open(r'C:\Users\CM\Desktop\book.txt','r',encoding='utf-8')
file1.write('张伟:16本\n') for data in file1:
file if '小强:10本'in data:
print('小强数据在文件中')
if '小兰:12本'in data:
print('小兰数据在文件中')
......
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