发布时间:2019-07-13 11:37:12编辑:auto阅读(2134)
python的len函数:
Python len() 方法返回对象(字符、列表、元组等)长度或项目个数。
如:
ret = os.popen('netstat -ntpl | grep apache2').readlines()
if len(ret) < 2:
if len(ret) == 0:
上一篇: Python之装饰器
下一篇: python 虚环境部署
53531
40353
34757
30515
25393
25183
23597
18872
15174
14688
1151°
1073°
1144°
1162°
1198°
1353°
1312°
1286°
1383°
1327°