2018年5月30日

字符编码,时间格式转换

摘要: 普通字符串可以用多种方式编码成Unicode字符串,具体要看你究竟选择了哪种编码:unicodestring = u"Hello world" # 将Unicode转化为普通Python字符串:"encode" utf8string = unicodestring.encode("utf-8") a 阅读全文

posted @ 2018-05-30 21:44 何必从头 阅读(282) 评论(0) 推荐(0) 编辑

导航