复制代码 代码如下:#!/usr/bin/env Python from __future__ import print_functionfrom collections import OrderedDict def meminfo(): ”’ Return the information in /proc/meminfo as a dictionary ”’ meminfo=OrderedDict() with open(‘/proc/meminfo’) as f: for line in f: meminfo[line.spli