import importlib.machinery format_list = importlib.machinery.all_suffixes() print(format_list)
so是linux可以加载的文件,windows是pyc