📅  最后修改于: 2022-03-11 14:45:24.239000             🧑  作者: Mango
$ cat free_space.py
#!/usr/bin/env python3
import shutil
total, used, free = shutil.disk_usage(__file__)
print(total, used, free)
$ ./free_space.py
1007870246912 460794834944 495854989312