Skip to content

Commit 87728b3

Browse files
committed
p3
1 parent 88851a4 commit 87728b3

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

‎110.md‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -263,13 +263,13 @@ Python 2中,要求`ord()`的参数所传递的是一个字符,即长度是1
263263

264264
这是一个基于ASCII得到的**字节串**,一个汉字两个字节。
265265

266-
>>> b = u'赵国'
267-
>>> type(b)
268-
<type 'unicode'>
269-
>>> len(b)
270-
2
271-
>>> b
272-
u'\u8d75\u56fd'
266+
>>> b = u'赵国'
267+
>>> type(b)
268+
<type 'unicode'>
269+
>>> len(b)
270+
2
271+
>>> b
272+
u'\u8d75\u56fd'
273273

274274
这是基于Unicode的**字符串**。两个术语:“字节串”和“字符串”,通过这个例子是否有了明晰?
275275

0 commit comments

Comments
 (0)