Commit d4c204ce by BellCodeEditor

save project

parent c845d650
Showing with 6 additions and 2 deletions
......@@ -11,4 +11,8 @@ dadt=""
with open (r"C:\Users\Administrator\Desktop\test.txt","r",encoding="utf-8")
for dadt in file1:
if "小强:10本"in dadt:
print("在")
\ No newline at end of file
dadt dadt.replace()
new_dadt+dadt
with open (r"C:\Users\Administrator\Desktop\test.txt","w",encoding="utf-8") as file1:
file1.write(new_dadt)
\ 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