摘要: #!/bin/bashlogApi=(91xingcai xinyao ag ah ascp)for i in ${logApi[*]};do content=`tail -n 100000 /home/logs/nginx/access/${i}Api.log |grep -v 'upstream 阅读全文
posted @ 2022-05-27 17:37 人生信条~~ 阅读(83) 评论(0) 推荐(0) 编辑
摘要: #作用域#匿名函数def isodd(x): return x%2a=isodd(10)print(a)isodd = lambda x: x%2#无参数#func= lambda:3,14#func()#print(a)myadd = lambda x,y:x+yA=myadd(1,2)print 阅读全文
posted @ 2022-05-27 12:23 人生信条~~ 阅读(24) 评论(0) 推荐(0) 编辑