platform 模块
1 import platform 2 3 profile = [ 4 platform.architecture(), 5 platform.dist(), 6 platform.libc_ver(), 7 platform.mac_ver(), 8 platform.node(), 9 platform.platform(), 10 platform.processor(), 11 platform.python_build(), 12 platform.python_compiler(), 13 platform.release(), 14 platform.system(), 15 platform.uname(), 16 platform.version(), 17 ] 18 19 i = 1 20 for item in profile: 21 print '#', i, ' ', item 22 i = i + 1