Commit 01981de2 by BellCodeEditor

save project

parent 3a98b88b
Showing with 6 additions and 6 deletions
...@@ -6,10 +6,10 @@ file.write('张伟:16本') ...@@ -6,10 +6,10 @@ file.write('张伟:16本')
file.close() file.close()
with open(r"C:\Users\Administrator\Desktop","a",encoding='utf-8') as file: with open(r"C:\Users\Administrator\Desktop","a",encoding='utf-8') as file:
file.write() file.write()
file.write('小强:12本') file.write('小强:12本/n')
file.write('李明:15本') file.write('李明:15本/n')
open(r"C:\Users\Administrator\Desktop","a",encoding='utf-8')
for i in file:
if '小兰:12本' in i:
print("数据在小兰里面")
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