Commit 3652f1b0 by BellCodeEditor

save project

parent a741c765
Showing with 13 additions and 4 deletions
with open(r'C:\Users\22747\Desktop\www.txt,"r",encoding="utf-8")as a: with open(r'C:\Users\22747\Desktop\www.txt,"r",encoding="utf-8")as a:
b=a.readlines() b=a.readlines()
print(a) print(b)
\ No newline at end of file
with open(r'C:\Users\22747\Desktop\www.txt,"r",encoding="utf-8")as a:
b=a.readlines()
print(b)
with open(r'C:\Users\22747\Desktop\www.txt',"r",encoding="utf-8")as a:
b=a.readlines()
for i in b:
print(i)
\ No newline at end of file
...@@ -12,4 +12,7 @@ with open(r"C:\Users\22747\Desktop\qqtxt"c:\Users\22747\Desktop\www.txt ...@@ -12,4 +12,7 @@ with open(r"C:\Users\22747\Desktop\qqtxt"c:\Users\22747\Desktop\www.txt
data=data.replace("小兰:12本","小兰:11本") data=data.replace("小兰:12本","小兰:11本")
d+=data d+=data
with open(r"C:\Users\22747\Desktop\qqtxt","w",encoding="utf-8")as a: with open(r"C:\Users\22747\Desktop\qqtxt","w",encoding="utf-8")as a:
a.write(d) a.write(d)
\ No newline at end of file with open(r'C:\Users\22747\Desktop\www.txt,"r",encoding="utf-8")as a:
b=a.readlines()
print(b)
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