摘要Python专题教程:字符串和字符编码 - crifan

Python

v1.2.1

Crifan Li

PythonPythonPython 2.xstr unicodePython 3.xbytesstrPython HTMLEntity

7zip

HTML 1 HTMLs PDF 3 CHM 4 TXT 5 RTF 6 WEBHELP

2

7

HTML 8 HTMLs PDF 10 CHM 11 TXT 12 RTF 13 WEBHELP

9

14

HTML

topic_str_encoding.html

bug



1.2.1

2015-05-26

crl

1.

2.

3.

1

2

3

4

5

6

7

8



python_topic_str_encoding.html.7z

9

10

11



python_topic_str_encoding.chm.7z

12

13

14



python_topic_str_encoding.webhelp.7z

Python:

Crifan Li v1.2.1 2015-05-26 ? 2015 Crifan,

- 2.5 (CC BY-NC 2.5)15

15

......................................................................................................................................... v 1. ...................................................................................................................... v 2. ............................................................................................................................. v

1. Python 2.xstrunicode vs. Python 3.xbytesstr .......................................................... 1 2. Python ........................................................... 2

2.1. Python UnicodeEncodeError .............................................................................. 2 2.1.1. UnicodeEncodeError ............................................................................................... 2 2.1.2. UnicodeEncodeError ......................................................................................... 2

2.2. strdecode ....................................................................................................... 4 3. Python ............................................................................ 6

3.1. Pythonu\uXXXX ............................................................. 6 3.2. Python ........................................................................................... 6 3.3. PythonHTML .................................................................................................. 6 .................................................................................................................................. 7

iii

2.1. """"Unicode .............................................................................. 3

iv

1.

Python Python

2.

Python Python 1

1

v

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download

To fulfill the demand for quickly locating and searching documents.

It is intelligent file search solution for home and business.

Literature Lottery

Related searches