Commit b7515265 by BellCodeEditor

save project

parent 0b3f5196
Showing with 4 additions and 3 deletions
...@@ -14,9 +14,9 @@ with open(r'C:\Users\yoyo\Desktop\bellcode.txt','a',encoding='utf-8')as filel: ...@@ -14,9 +14,9 @@ with open(r'C:\Users\yoyo\Desktop\bellcode.txt','a',encoding='utf-8')as filel:
print('张伟数据在文件中') print('张伟数据在文件中')
new_data+=data new_data+=data
open(r'C:\Users\yoyo\Desktop\bellcode.txt','w',encoding='utf-8')as filel: with open(r'C:\Users\yoyo\Desktop\bellcode.txt','w',encoding='utf-8')as filel:
filel.write(new_data) filel.write(new_data)
open(r'C:\Users\yoyo\Desktop\bellcode.txt','r',encoding='utf-8')as filel: with open(r'C:\Users\yoyo\Desktop\bellcode.txt','r',encoding='utf-8')as filel:
a=filel.read() a=filel.read()
print(a) print(a)
\ 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