python的namedtuple可以创建一个带字段名的元祖和一个带名字的类 In [1]: from collections import namedtuple ...: ...: nginx=namedtuple('nginx',['active','accepts','handled','requests','reading','writing','waiting']) ...: In [2]: get_nginx=nginx(1,2,3,4,11,111,22) In [3]: get_…