Commit 2149d55f by BellCodeEditor

save project

parent 8839503e
Showing with 9 additions and 6 deletions
#a=open(r"C:\Users\pc\Desktop\123\test.txt","a",encoding="utf-8") #a=open(r"C:\Users\pc\Desktop\123\test.txt","a",encoding="utf-8")
with open(r"C:\Users\pc\Desktop\123\test.txt","r",encoding="utf-8")as a: with open(r"C:\Users\pc\Desktop\123\test.txt","r",encoding="utf-8")as a:
a.write("贾子强最好\n") ##a.read("贾子强最帅\n")
a.write("贾子强最帅\n") #a.read("*********************************是个SB")
a.write("*********************************是个SB") for i in a:
b=a.read() for "i" in i:
print(b) print(SB)
\ No newline at end of file elif:
print(SB)
\ 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