What encoding do normal python strings use?

前端 未结 6 1996
太阳男子
太阳男子 2020-12-03 08:08

i know that django uses unicode strings all over the framework instead of normal python strings. what encoding are normal python strings use ? and why don\'t they use unicod

6条回答
  •  不知归路
    2020-12-03 08:30

    Before Python 3.0, string encoding was ascii by default, but could be changed. Unicode string literals were u"...". This was silly.

提交回复
热议问题