Learning Python coding

Python2 default interpreter code: ascii;

Python3 interpreter default encoding: UTF-8

  1. ascii code: only recognize letters, numbers and punctuation. 8 indicates an English character, a byte

  1. Unicode Uicode: all current language, 32-bit, 4 bytes

  1. utf-8: Unicode compression. 16, this encoding, a character byte 3

Guess you like

Origin www.cnblogs.com/fmfei/p/12074846.html