Commit 02d90a38 by BellCodeEditor

auto save

parent cbd06265
Showing with 2 additions and 2 deletions
...@@ -11,8 +11,8 @@ file1.close() ...@@ -11,8 +11,8 @@ file1.close()
with open(r"C:\Users\Acer\Desktop\test.txt","r",encoding="utf-8") as file: with open(r"C:\Users\Acer\Desktop\test.txt","r",encoding="utf-8") as file:
for date in file1: for date in file1:
if:"小丽:11本\n"in date if"小丽:11本\n"in date
print("小丽:11本\n") print("小丽:11本\n")
if:"小兰:12本\n"in date if"小兰:12本\n"in date
print("小兰:12本\n") print("小兰:12本\n")
file1as.write("lijiayu:160本\n") file1as.write("lijiayu:160本\n")
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