Commit 5176c20c by BellCodeEditor

save project

parent 2baa6529
Showing with 19 additions and 5 deletions
file1=open("C:\\Users\\Administrator\Desktop\\test.txt","w",encoding="utf-8")
file1.write("小兰:12本")
\ No newline at end of file
file1=open("C:\\Users\\Administrator\Desktop\\test.txt","r",encoding="utf-8")
# file1.write("李明:20本\n")
# file1.write("小强:15本\n")
# file1.close()
a=file.read()
print(a)
\ No newline at end of file
file1=open("C:\\Users\\Administrator\Desktop\\test.txt","r",encoding="utf-8")
# file1.write("李明:20本\n")
# file1.write("小强:15本\n")
# file1.close()
a=file.read()
print(a)
\ No newline at end of file
{"admin": "admin", "python": "123456"}
\ No newline at end of file
b=['热文''衣服二分水水''黄金''冯浩']
print(b[:4])
print(b[2:])
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