Commit 30341c50 by BellCodeEditor

save project

parent 246b3b18
Showing with 4 additions and 2 deletions
......@@ -2,4 +2,6 @@ with open(r"C:\Users\win 10\Desktop\新建文本文档.txt","r",encoding="utf=8"
for c4 in file:
if"小兰:38本"in c4:
c4=c4.replace("小兰:38本","小兰:39本")
print("数据在文件中")
\ No newline at end of file
a+=c4
with open(r"C:\Users\win 10\Desktop\新建文本文档.txt","r",encoding="utf=8")as file:
file.write(a)
\ 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