Get the App
SLTechnology News&Howtos  ›  Development  › 

What is the use of the disk_usage () function in python

Shulou Source: shulou.com Published: 2022-06-01 02:59:28 09月22日 Update

This article mainly shows you "what is the use of the disk_usage() function in python", the content is simple and easy to understand, and the organization is clear. I hope it can help you solve your doubts. Let Xiaobian lead you to study and learn "what is the use of the disk_usage() function in python".

disk_usage()

Description: View disk usage information, calculate total disk storage, used storage, remaining storage information.

Syntax: shutil.disk_usage ('drive letter ')

Return value: tuple

shutil.disk_usage('D:') usage (total=151199412224, used=41293144064, free=109906268160) total, total storage: 151199412224/1024/1024/1024=140GB used, used: 41293144064/1024/1024=38GB free, remaining capacity: 109906268160/1024/1024/1024=102GB above is "What is the use of the disk_usage() function in python" All the contents of this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!

Tags: Storage functions content articles information disk surplus learning help capacity easy to understand more organization knowledge editing industry grammar information information channels channels Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Docker MariaDB OPPO Reno Redmi