Commit 7867ede6 by BellCodeEditor

save project

parent b7a5e7db
Showing with 4 additions and 5 deletions
...@@ -8,8 +8,7 @@ ...@@ -8,8 +8,7 @@
# file.write('小强:10本\n') # file.write('小强:10本\n')
# file.write('李明:15本\n') # file.write('李明:15本\n')
# file1.close() # file1.close()
with open(r'C:\Users\CM\Desktop\book.txt','r',encoding='utf-8')as file 1: a=4
if'小强:10本'in data: b=5
print('小强在文本中) print("a"and"b")
if'小兰:12'in data: int(a)+int(b)
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