python中str字符串和unicode对象字符串的拼接
python中unicode对象和str对象拼接在一起,会自动将str对象转换成unicode对象即:a=“aa”b=u"bb"c=a+btype©会打印出此对象为unicode对象另外,json.loads(a)返回的对象,key和value的类型均是unicode类型str字符串s = '中文' # s: <type 'str'>s是个str对象,中文...
原创
2019-07-24 10:34:51 ·
646 阅读 ·
0 评论