Commit c3b499d1 by BellCodeEditor

save project

parent 9dbf61cd
Showing with 13 additions and 3 deletions
file=open(r"E:\莫可涵\编程\新建 文本文档.txt",'w',encoding='utf-8') with open(r"E:\莫可涵\编程\新建 文本文档.txt",'w',encoding='utf-8')
flie=('小强:12本') flie.whlie('小强:10本''\n')
flie=('李明:15本') flie.close()
with open(r"E:\莫可涵\编程\新建 文本文档.txt",'a',encoding='utf-8')
flie.whlie('小兰:12''\n')
with open(r"E:\莫可涵\编程\新建 文本文档.txt",'r',encoding='utf-8')
a=flie.read()
for a in taxt():
if '小强:10本' in flie:
print("在")
if '小兰:12本' in flie:
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