Commit 36d02eda by BellCodeEditor

save project

parent eeae2459
Showing with 8 additions and 1 deletions
...@@ -8,5 +8,12 @@ ...@@ -8,5 +8,12 @@
with open(r'C:\Users\makcoo\Desktop\text.txt','a',encoding='utf-8')as file1: with open(r'C:\Users\makcoo\Desktop\text.txt','a',encoding='utf-8')as file1:
file1.write("xq:12本\n") file1.write("xq:12本\n")
file1.write("lm:16本\n") file1.write("lm:16本\n")
new_data=""
with open(r'C:\Users\makcoo\Desktop\text.txt','r',encoding='utf-8')as
a=filel.read()
for data in a:
print(data)
if data=="xq:12":
data.replace()
new_data+=data
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