#!/usr/bin/env python import os for i in os.listdir(‘/proc‘): try: if type(int(i)) == type(1): print i, except: pass
时间: 2024-10-24 21:59:09
#!/usr/bin/env python import os for i in os.listdir(‘/proc‘): try: if type(int(i)) == type(1): print i, except: pass