摘要: f=open("1.log",'r')s=f.readlines()for i in range(911): if "qSrcAddr=180.163.194.15" in s[i]: print(s[i])f.close() 阅读全文
posted @ 2017-09-04 20:04 pop_PY 阅读(140) 评论(0) 推荐(0) 编辑
摘要: # f=open('test.txt','w')# f.write('王why1234')# f.close()f=open('test.txt','r+')f.seek(5)f.truncate()f.close() 阅读全文
posted @ 2017-09-04 16:08 pop_PY 阅读(115) 评论(0) 推荐(0) 编辑