发布时间:2019-07-13 11:37:12编辑:auto阅读(1631)
python的len函数:
Python len() 方法返回对象(字符、列表、元组等)长度或项目个数。
如:
ret = os.popen('netstat -ntpl | grep apache2').readlines()
if len(ret) < 2:
if len(ret) == 0:
上一篇: Python之装饰器
下一篇: python 虚环境部署
50042
49298
39959
36999
31396
28235
27195
21985
21936
20268
375°
291°
272°
449°
441°
1051°
1965°
1822°
1462°
2930°