Should I use Unicode string by default?

前端 未结 6 828
星月不相逢
星月不相逢 2021-02-07 03:38

Is it considered as a good practice to pick Unicode string over regular string when coding in Python? I mainly work on the Windows platform, where most of the string types are U

6条回答
  •  花落未央
    2021-02-07 04:24

    If you are dealing with severely constrained memory or disk space, use ASCII strings. In this case, you should additionally write your software in C or something even more compact :)

提交回复
热议问题