Commit ff2200be by BellCodeEditor

save project

parent 4c4dc747
Showing with 9 additions and 4 deletions
with open("C:\\Users\\帛帛\\Desktop\\xxs.txt","w",encoding="utf-8") as file:
file.write('小兰:12本\n')
file.write('小sb:1本\n')
file.write('hp:10000本\n')
ddd = ""
with open("C:\\Users\\帛帛\\Desktop\\xxs.txt","r",encoding="utf-8") as file:
for i in file:
if "sb:10" in i:
i = i.replace("sb:10","sb:9")
ddd += i
with open("C:\\Users\\帛帛\\Desktop\\xxs.txt","r",encoding="utf-8") as file:
file.write(ddd)
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