psutil.disk_用法('/')返回奇怪的值

2024-09-30 04:27:26 发布

您现在位置:Python中文网/ 问答频道 /正文

当我跑步时:

>>> psutil.disk_usage('/')
sdiskusage(total=451000901632, used=11184947200, free=77055238144, percent=12.7)

与我的笔记本电脑上关于佩奇的说法以及used + free != total相比,使用是完全错误的

这些单独的列实际上指的是什么

短暂性脑缺血发作


Tags: free错误usage跑步usedpsutil笔记本电脑total
1条回答
网友
1楼 · 发布于 2024-09-30 04:27:26

会议documentation states

total, used and free space expressed in bytes, plus the percentage usage

文档还详细说明了一些可能导致意外结果的怪癖

对于Python3,它可以作为^{}使用相同的单元

相关问题 更多 >

    热门问题