python的那个spyder中可以输出汉字么

我用的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
mengvlog 阅读 58 次 更新于 2025-12-18 19:46:51 我来答关注问题0
檬味博客在线解答立即免费咨询

Python相关话题

Copyright © 2023 WWW.MENGVLOG.COM - 檬味博客
返回顶部