摘要:
def cash_out(amount): while amount >0: amount-=1 yield 1 print('get again %s' %amount)atm=cash_out(5)print(type(atm))print(atm.next())print(234234)pri 阅读全文
摘要:
f = open("1.log", 'r')f1 = open("2.txt",'w')for i in f: if "qSrcAddr=180.163.194.15" in i: f1.write(i) print(i)f.close()f1.close() 阅读全文