Commit 0de7dbab by BellCodeEditor

save project

parent 40fe4189
Showing with 9 additions and 0 deletions
......@@ -10,3 +10,11 @@ with open(r'C:\Users\Administrator\Desktop\114.txt','a',encoding='utf-8') as Fil
File1.write('w:12本\n')
File1.write('lm:15本\n')
with open(r'C:\Users\Administrator\Desktop\114.txt','r',encoding='utf-8') as File1:
#a=File1.read()
#print(a)
for data in File1:
if 'w:12本' in File1:
print("OK(o)")
else:
print("NO(n)")
\ No newline at end of file
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