Commit d8834af1 by BellCodeEditor

save project

parent bfec37a7
Showing with 6 additions and 3 deletions
......@@ -2,5 +2,9 @@
# syx=open(r'C:\Users\于景波\Desktop\TNT.txt','w',encoding='utf-8')
# syx.write('小兰:12本')
# syx.close()
with open(r'C:\Users\于景波\Desktop\TNT.txt','a',encoding='utf-8') as syx:
syx.write('小兰:12本\n')
\ No newline at end of file
# with open(r'C:\Users\于景波\Desktop\TNT.txt','a',encoding='utf-8') as syx:
# syx.write('小兰:12本\n')
with open(r'C:\Users\于景波\Desktop\TNT.txt','r',encoding='utf-8') as syx:
for wx in syx:
if "小兰:12本" in wx:
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