解决方法
要在
Python中执行此操作:
import os import stat executable = stat.S_IEXEC | stat.S_IXGRP | stat.S_IXOTH for filename in os.listdir('.'): if os.path.isfile(filename): st = os.stat(filename) mode = st.st_mode if mode & executable: print(filename,oct(mode))