Commit da2a4285 by BellCodeEditor

save project

parent 04059d12
Showing with 5 additions and 3 deletions
......@@ -7,5 +7,7 @@
with open(r'C:\Users\TH\Desktop\a.txt','r',encoding='utf-8') as a:
#b=a.read()
for i in a:
if '小强:10本'
print(b)
\ No newline at end of file
if '小强:10本' in i:
print('数据在文件中')
if '小兰:12本' in i:
print('数据在文件中')
\ 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