刚开始学Python。如何在 Python 中获取文件属性的状态?我知道os.chmod(fullname, stat.S_IWRITE)删除只读属性,但是如何在不更改它的情况下获得状态?我需要获得"hidden", "system", "readonly", 的所有属性"archive"
os.chmod(fullname, stat.S_IWRITE)
"hidden"
"system"
"readonly"
"archive"
python attributes operating-system chmod stat
attributes ×1
chmod ×1
operating-system ×1
python ×1
stat ×1