Commit 6e6de2b2 by BellCodeEditor

save project

parent b51b9643
Showing with 4 additions and 4 deletions
......@@ -10,7 +10,7 @@
new_data=""
with open(r"C:\Users\Administrator\Desktop\book.txt","r",encoding="utf-8") as file:
for data in file:
if "小强:10本" in data:
print("强有")
if "小强:12本" in data:
data=data.replace("小强:12本","小强:11本")
if "小兰:12本" in data:
print("兰在")
\ No newline at end of file
new_data+=data
\ 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