Commit 1216245f by BellCodeEditor

save project

parent 2c2a6dbe
Showing with 7 additions and 2 deletions
...@@ -8,5 +8,10 @@ ...@@ -8,5 +8,10 @@
# with open(r'C:\Users\Administrator\Desktop\text.txt','a',encoding='utf-8')as filel1: # with open(r'C:\Users\Administrator\Desktop\text.txt','a',encoding='utf-8')as filel1:
# filel.write('QQ:1本\n') # filel.write('QQ:1本\n')
with open(r'C:\Users\Administrator\Desktop\text.txt','r',encoding='utf-8')as filel1: with open(r'C:\Users\Administrator\Desktop\text.txt','r',encoding='utf-8')as filel1:
a = filel1.read() # a = filel1.read()
print(a) # print(a)
for a in filel1:
if"QQ:12本" in a:
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