03 编码解码

# 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  想起就不爽  阅读(9)  评论(0编辑  收藏  举报

导航