编码和字符串的区别
摘要:编码 Python2 的默认编码是 asscii,这也是导致 Python2 中经常遇到编码问题的原因之一,至于是为什么会使用 asscii 作为默认编码,原因在于 Python 2 出来的时候还没出现 Unicode。Python 3 默认采用了 UTF-8 作为默认编码,因此你不再需要在文件顶部
阅读全文
posted @ 2018-01-07 17:11
posted @ 2018-01-07 17:11
posted @ 2018-01-07 17:04
posted @ 2018-01-05 10:58