def ascii2utf8(ascii): line = eval(("'" + ascii.strip() + "'")) return line 转载于:https://www.cnblogs.com/shiluoliming/p/9327933.html