python: int to unicode string
摘要:
>>> import types >>> print type(str(2)) >>> print type(str('2')) # 这里先转为str,在转为unicode >>> print type(str(2).decode('utf-8')) >>> print type(str('32').decode('utf-8')) >>> print str(2).decode('utf... 阅读全文
posted @ 2016-10-14 19:36 ZhYQ_note 阅读(963) 评论(0) 推荐(0)
浙公网安备 33010602011771号