Commit e3d3dd34 by BellCodeEditor

save project

parent dc22b1a3
Showing with 18 additions and 0 deletions
# 写入同学们的捐赠明细:'小兰:1234本'、'小丽:11123本'、'李文:934本'、'张伟:16123本'
# asdfg=open(r"C:\Users\GT\Desktop\asdf.txt","w",encoding='utf-8')
# asdfg.write('吴卓和:1\n')
# asdfg.write('吴卓州:10000\n')
# asdfg.write('吴卓和:9999\n')
# with open(r"C:\Users\GT\Desktop\asdf.txt","a",encoding='utf-8')as file:
# file.write('吴卓和:1\n')
# file.write('吴卓州:10000\n')
# file.write('吴卓和:9999\n')
with open(r"C:\Users\GT\Desktop\asdf.txt","r",encoding='utf-8')as file2:
for i in file2
if"吴卓州:10000"in i:
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