会员
众包
新闻
博问
闪存
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
_如影随形
Powered by
博客园
博客园
|
首页
|
新随笔
|
联系
|
订阅
|
管理
2018年5月16日
python_2 / python_3 区别与安装问题
摘要: 一、 python_2 运用广泛,但对于编码很不友好,str/unicode不一致时,在运行输出的时候会得不到想要的结果。 eg. #-*- coding:utf-8 -*- #type(a)——>unicode #type("中文")——>str print("中文:", a)输出结果是:('\x
阅读全文
posted @ 2018-05-16 16:45 _如影随形
阅读(132)
评论(0)
推荐(0)
编辑