获取python解释器信息

sys.version

获取操作系统名称

sys.platform

获取解释器默认编码

sys.getdefaultencoding()

获取文件写入编码

sys.getfilesystemencoding()