首页 技术 正文
技术 2022年11月6日
0 收藏 465 点赞 526 浏览 909 个字

import psutil
psutil.pids()
[1, 2, 3, 7, 8, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 26, 27, 28, 29, 30, 38, 40, 41, 43, 62, 94, 233, 234,
235, 241, 242, 245, 248, 249, 251, 253, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 360, 379, 385, 390, 406, 463, 464, 465, 466, 467, 468, 469, 470, 493, 510, 511, 513, 515, 518, 519, 520, 521, 522, 523, 526, 528, 534, 536, 566, 567, 568, 570, 577, 578, 596, 616, 644, 850, 852, 856, 868, 931, 935, 1059, 1953, 2078, 2080, 2205, 2240, 2300, 2301, 2348, 2457, 2466, 2471, 2478, 2479, 2546, 2551, 2635, 2647, 2652, 2656, 2668, 2687, 2697, 2704, 2712, 2718, 2719, 2723, 2729, 2737, 2749, 2750, 2757, 2765, 2767, 2776, 2784, 2789, 2795, 2800, 2816, 2818, 2829, 2833, 2836, 2842, 2848, 2854, 2863, 2887, 2969, 2973, 2974, 3049, 3100, 13470, 13555, 16389, 27199, 27786, 27799, 27876, 27923, 27932, 27978, 27979, 27988, 27990, 28008, 28036, 28037]>>> p=psutil.Process(469)
p.name(),p.cwd()
(‘xfs-eofblocks/s’, ‘/’)
p.cpu_times()
pcputimes(user=0.0, system=0.0, children_user=0.0, children_system=0.0)
p.memory_percent()
0.0
p.status()
‘sleeping’

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,104
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,581
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,428
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,200
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,835
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,918