Commit 337c8484 by BellCodeEditor

save project

parent 709898f5
Showing with 6 additions and 0 deletions
...@@ -4,3 +4,9 @@ with open(r"C:\Users\Administrator\Desktop\app.txt","r",encoding="utf-8")as app: ...@@ -4,3 +4,9 @@ with open(r"C:\Users\Administrator\Desktop\app.txt","r",encoding="utf-8")as app:
print("数据在文件中") print("数据在文件中")
else: else:
print("不在里面") print("不在里面")
for data in app:
if'小强:10本'in data:
data=data.replace("小强:10本“,"小强:11本“)
if'小兰:10本'in data:
data=data.replace("小兰:10本“,"小兰:11本“)
new-data +=data
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