Commit 120afa43 by BellCodeEditor

save project

parent 1ad712c0
Showing with 5 additions and 0 deletions
...@@ -14,3 +14,8 @@ file1: ...@@ -14,3 +14,8 @@ file1:
a=file1.read() a=file1.read()
print(a) print(a)
with open(r'C:\Users\Administrator\Desktop\test.txt','r',encoding='utf-8')as file1:
for data in file1:
if"xiaoqiang:10ben"in data:
print('shujuzaiwenjianzhon')
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