import shutil
total, used, free = shutil.disk_usage("\\")
print("Total: %d GB" % (total // (2**30)))
print("Used: %d GB" % (used // (2**30)))
print("Free: %d GB" % (free // (2**30)))
import shutil
total, used, free = shutil.disk_usage("\\")
print("Total: %d GB" % (total // (2**30)))
print("Used: %d GB" % (used // (2**30)))
print("Free: %d GB" % (free // (2**30)))
本文标题:python3 判断磁盘存储使用情况
本文链接:https://www.haomeiwen.com/subject/jctzlqtx.html
网友评论