写爬虫的时候老是遇到,昨天还把编码问题列入日程。今天看到前辈们都有总结,就拿来主义了。谢谢。
Chown-Jane-Y 《浅析Python3中的bytes和str类型》
skyflask 《彻底搞清楚python字符编码》
John_ABC 《Python-字符编码详解》
编码
1 Byte(Byte,字节) = 8 Bits(位)
1 KB (Kilobyte,千字节)= 1024 Bytes
1 MB (Megabyte,兆字节,百万字节,简称“兆”) = 1024 KB
1 GB (Gigabyte,吉字节,十亿字节,又称“千兆”)= 1024 MB
1 TB (Terabyte,万亿字节,太字节)=1000GB