Commit e108b94b by BellCodeEditor

save project

parent a8d02629
Showing with 8 additions and 0 deletions
with open("C:\\Users\\Administrator\\Deskto\\book.txt","w"encoding='utf-8') as file1:
#file.write("小兰:14本 \n小丽:11本 \n 李文:9本 \n 张伟:16本 小强:11本 \n 李明:9本 ")
for data in file1
if '小强:10本' in data:
print("nnn")
if '小兰:12本' in data:
print("nnn")
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