2018年10月12日

自学Python1.5-Centos内python2识别中文

摘要: 自学Python之路 自学Python1.5-Centos内python2识别中文 方法一,python推荐使用utf-8编码方案 经验一:在开头声明: # -*- coding: utf-8 -*-当然,也可以写成:# coding:utf-8 经验二:遇到字符(节)串,立刻转化为unicode, 阅读全文

posted @ 2018-10-12 11:26 CARLOS_KONG 阅读(390) 评论(0) 推荐(0) 编辑

导航