Commit 246b3b18 by BellCodeEditor

save project

parent 59f687ca
Showing with 6 additions and 0 deletions
with open(r"C:\Users\win 10\Desktop\新建文本文档.txt","r",encoding="utf=8")as file:
for c4 in file:
if"小兰:38本"in c4:
c4=c4.replace("小兰:38本","小兰:39本")
print("数据在文件中")
\ 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