Commit 8839503e by BellCodeEditor

save project

parent 0b1d935e
Showing with 4 additions and 2 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","a",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.write("贾子强最好\n")
a.write("贾子强最帅\n") a.write("贾子强最帅\n")
a.write("*********************************是个SB") a.write("*********************************是个SB")
a.close() b=a.read()
print(b)
\ 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