Commit ae6e31c2 by BellCodeEditor

save project

parent de4fec8a
Showing with 8 additions and 3 deletions
# 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本' # 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本'
file1=open(r'C:\Users\xmbc\Desktop\text.txt','w',encoding="utf-8") file1=open(r'C:\Users\xmbc\Desktop\text.txt','w',encoding="utf-8")
file1.write('傻逼:9221565546645464545454545555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555554648456456465456465trhyth4ty654t65y4jty5j4t5yj4t5y6j45tj4t5jrtjty7本') file1.write('sb:112')
file1.close() file1.write('55:184')
\ No newline at end of file for data in file1:
if 'sb:112' in data:
print('zai')
elif
print('buzai')
break
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