发布时间:2019-07-13 11:37:12编辑:auto阅读(1886)
python的len函数:
Python len() 方法返回对象(字符、列表、元组等)长度或项目个数。
如:
ret = os.popen('netstat -ntpl | grep apache2').readlines()
if len(ret) < 2:
if len(ret) == 0:
上一篇: Python之装饰器
下一篇: python 虚环境部署
52065
51934
42155
38998
33503
30454
29086
24120
24026
22376
144°
164°
172°
157°
181°
166°
189°
202°
204°
211°