#本地语

python 获取本地语言和编码的代码

#!/usr/bin/envpython#encoding=utf8importlocalelanguage,encoding=locale.getdefaultlocale()print("language",language)print("encoding",encoding)  输出:languagezh_CNe...