我用的python3.5 用ascii函数处理 s = "中文"lst = []for c in s: lst.append(int('0x' + ascii(c)[3:7], 16))print(lst)输出是:[20013, 25991]
python的那个spyder中可以输出汉字么
我用的python3.5 用ascii函数处理 s = "中文"lst = []for c in s: lst.append(int('0x' + ascii(c)[3:7], 16))print(lst)输出是:[20013, 25991]2017-01-07