hysyeah

知易行难


  • 首页

  • 分类

  • 标签

  • 归档

  • 关于

  • 搜索

python编码

发表于 2017-10-02 分类于 python

python2中的默认编码为ASCII,在python3改为了unicode。

image image

python2中,python3中已经没有(unicode,basestring)

unicode_type = unicode

string_type = basestring

python3中

unicode_type = str

string_type = bytes

Ref: 1.http://www.jianshu.com/p/2bb8a1300bfd

python魔法变量之__init__,__del__
Django内置的密码管理
  • 文章目录
  • 站点概览

hys

329 日志
30 分类
35 标签
  1. 1. python2中的默认编码为ASCII,在python3改为了unicode。
  2. 2. python2中,python3中已经没有(unicode,basestring)
hysyeah.top © 2019-2025 粤ICP备19077752号