def u(text):
if isinstance(text, exceptions.BaseException):
text = text.args[0]
if type(text) is str:
return text
if isinstance(text, str):
if sys.stdin.encoding:
return codecs.decode(text, sys.stdin.encoding)
else:
return codecs.decode(text, "utf-8")
return str(text)
评论列表
文章目录