#coding:gbk

#unicode---编码--->gbk
# x='上' #x='\xc9\xcf'
# print([x,])


# 你a好
# (1+7)bit+(1+7)bit+(1+7)bit+(1+7)bit+(1+7)bit



# x=u'上'
# print([x,])
# y=u'下'
# print([y,])


x = '上' #unicode------encode----->gbk
print(type(x))
# res=x.decode('gbk')
# print([res,])

x=u'上' #unicode
print(type(x))
# res1=x.encode('gbk')
# res2=x.encode('utf-8')

# print([res1,])
# print([res2,])