Commit 3150c8d9 by BellCodeEditor

save project

parent 7e15835b
Showing with 9 additions and 5 deletions
file=open("C:\\Users\\hy\\Desktop\\book.txt","w",encoding='utf-8') #file=open("C:\\Users\\hy\\Desktop\\book.txt","w",encoding='utf-8')
file=open("C:\\Users\\hy\\Desktop\\book.txt","w",encoding='utf-8') #file=open("C:\\Users\\hy\\Desktop\\book.txt","w",encoding='utf-8')
file.write("小兰:12,小丽:11,李文:9,张伟:16") #file.write("小兰:12,小丽:11,李文:9,张伟:16,")
file.close() #fill.close()
\ No newline at end of file
file1=open("C:\\Users\\hy\\Desktop\\book.txt","a",encoding='utf-8')
file1.write('小强:12,李明:15')
file1.close()
\ 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