Python查看当前默认的字符集

import sys
print(sys.getdefaultencoding())

  

原文地址:https://www.cnblogs.com/lucktomato/p/15169089.html