摘要:
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() 阅读全文
摘要:
# f=open('test.txt','w')# f.write('王why1234')# f.close()f=open('test.txt','r+')f.seek(5)f.truncate()f.close() 阅读全文