发布时间:2019-07-13 11:37:12编辑:auto阅读(1715)
python的len函数:
Python len() 方法返回对象(字符、列表、元组等)长度或项目个数。
如:
ret = os.popen('netstat -ntpl | grep apache2').readlines()
if len(ret) < 2:
if len(ret) == 0:
上一篇: Python之装饰器
下一篇: python 虚环境部署
50972
50354
40970
37837
32302
29193
28079
22909
22871
21203
1072°
1746°
1431°
1364°
1634°
1451°
2110°
3657°
3584°
2528°