Commit 8cd1910a by BellCodeEditor

save project

parent 26a6126f
Showing with 0 additions and 10 deletions
file1=open(r'C:\Users\刘翔\Desktop\test.txt.txt','r')
a=file1.read()
print(a)
file1.close()
with open(r'C:\Users\刘翔\Desktop\test.txt.txt','r')as file1:
for data in file1:
if "333"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