Commit e597105d by BellCodeEditor

save project

parent e4323f83
Showing with 4 additions and 2 deletions
......@@ -2,4 +2,6 @@
file1=open(r'D:\Users\CM\Desktop\book.txt','W',encoding='utf-16')
file1.write("小兰:12本\n")
with open(r'D:\Users\CM\Desktop\book.txt','W',encoding='utf-16') as file:
file1.write("小兰:12本\n")
\ No newline at end of file
for data in file:
if '小兰:12本'in data:
print(小兰)
\ 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