发布时间:2019-07-13 11:37:12编辑:auto阅读(1857)
python的len函数:
Python len() 方法返回对象(字符、列表、元组等)长度或项目个数。
如:
ret = os.popen('netstat -ntpl | grep apache2').readlines()
if len(ret) < 2:
if len(ret) == 0:
上一篇: Python之装饰器
下一篇: python 虚环境部署
51938
51730
42031
38872
33360
30325
28969
23984
23900
22261
412°
2602°
3280°
2731°
2719°
3467°
2681°
3510°
5798°
5578°