Commit 3f052fd0 by BellCodeEditor

save project

parent dc22b1a3
Showing with 9 additions and 0 deletions
# 写入同学们的捐赠明细:''
filtel=open(r"C:\Users\lenovo\Desktop\book.txt",'r')
a=filtel.read()
print(a)
with open(r"C:\Users\lenovo\Desktop\book.txt",'r') as filtel:
for data in filtel:
if '222' in data:
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