# coding:utf-8
x='上'
res=x.encode('gbk') # unicode--->gbk# print(res,type(res))
print(res.decode('gbk'))
posted on 2023-02-27 17:24 小小小传说 阅读(20) 评论(0) 收藏 举报
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3