Commit bb871b70 by BellCodeEditor

save project

parent 080e31e4
Showing with 7 additions and 0 deletions
......@@ -5,3 +5,9 @@ with open(r'C:\Users\CM\Desktop\book.txt','w',encoding='utf-8')as filel:
print('小强数据在文件中')
if '小兰:25本' in data:
print('小兰数据在文件中')
with open(r'C:\Users\CM\Desktop\book.txt','w',encoding='utf-8')as filel:
filel.write(new_data)
with open(r'C:\Users\CM\Desktop\book.txt','w',encoding='utf-8')as filel:
a=filel.read()
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