Commit 3308315c by BellCodeEditor

save project

parent 3e8dceba
Showing with 1 additions and 1 deletions
......@@ -14,7 +14,7 @@ with open(r"C:\\Users\\BBTC\\Desktop\\book.txt","r",encoding="utf-8")as file:
if "小丽:11本" in data:
data=data.replace("小丽:11本","小丽:14本")
new_data+=data
with open(r"C:\\Users\\BBTC\\Desktop\\book.txt","r",encoding="utf-8")as file:
with open(r"C:\\Users\\BBTC\\Desktop\\book.txt","w",encoding="utf-8")as file:
file.write(new_data)
with open(r"C:\\Users\\BBTC\\Desktop\\book.txt","r",encoding="utf-8")as file:
a=file.read()
......
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