Commit 358e6147 by BellCodeEditor

save project

parent 77314b87
Showing with 2 additions and 2 deletions
......@@ -9,6 +9,6 @@ with open(r'C:\Users\玛酷机器人编程中心\Desktop\test.txt','a',encoding=
filel.write('小强:12本\n')
with open(r'C:\Users\玛酷机器人编程中心\Desktop\test.txt','r',encoding='utf-8') as filel:
for data in filel:
if '小强:12本\n' in filel:
print('小强:10本\n')
if '小强:12本\n' 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