Commit 89f03c60 by BellCodeEditor

save project

parent 05e0d4e8
Showing with 9 additions and 2 deletions
with open(r'C:\Users\Lenovo\Desktop\book.txt','r',encoding='utf-8') as file1:
for data in file1:
if '小美:10本'in data:
print('小美数据在文件中')
if '小白:21本'in data:
print('小白数据在文件中')
\ No newline at end of file
......@@ -14,4 +14,4 @@ def new_input():
print("-"*30)
return total
result=new_input()
print(total)
\ No newline at end of file
print(total) s
\ 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