Commit 9c0eca2f by BellCodeEditor

save project

parent eb568db4
Showing with 4 additions and 10 deletions
...@@ -7,13 +7,6 @@ ...@@ -7,13 +7,6 @@
# n.close() # n.close()
# with open(r"C:\Users\Administrator\Desktop\test.txt",'r',encoding='utf-8') as n: with open(r"C:\Users\Administrator\Desktop\test.txt",'r',encoding='utf-8') as n:
# a = n.read() a = n.read()
# print(a) print(a)
\ No newline at end of file
n=open(r"C:\Users\Administrator\Desktop\test.txt",'r',encoding='utf-8')
for data in n:
if'小兰:12本'in data:
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