What is the use of the disk_usage () function in python
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!