Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8fd3f13

Browse files
committed
[po] auto sync bot
1 parent 0560384 commit 8fd3f13

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

tutorial/datastructures.po

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,16 +397,18 @@ msgid ""
397397
"creates an empty dictionary, a data structure that we discuss in the next "
398398
"section."
399399
msgstr ""
400+
"花括号或者 ;func:`set` 方法可以用来创建集合。注意:如果要创建空集合,则只能用 ``set()``,不能用 "
401+
"``{}``,因为后者创建的是空字典,这是我们下一节会讨论的数据结构。"
400402

401403
#: ../../tutorial/datastructures.rst:451
402404
msgid "Here is a brief demonstration::"
403-
msgstr ""
405+
msgstr "以下是一些简单的示例:"
404406

405407
#: ../../tutorial/datastructures.rst:476
406408
msgid ""
407409
"Similarly to :ref:`list comprehensions <tut-listcomps>`, set comprehensions "
408410
"are also supported::"
409-
msgstr ""
411+
msgstr "类似于列表推导式 :ref:`list comprehensions <tut-listcomps>`,集合也支持推导式形式 ::"
410412

411413
#: ../../tutorial/datastructures.rst:487
412414
msgid "Dictionaries"
@@ -425,6 +427,10 @@ msgid ""
425427
"modified in place using index assignments, slice assignments, or methods "
426428
"like :meth:`append` and :meth:`extend`."
427429
msgstr ""
430+
"另一个非常有用的Python內建数据类型是 *字典* (参见 :ref:`typesmapping`)。字典在其他语言里可能会被叫做 *联合内存* 或 "
431+
"*联合数组*。与以连续整数为索引的序列不同,字典是以 *关键字* "
432+
"为索引,关键字可以是任意不可变类型,通常是字符串或数字。如果一个元组只包含字符串,数字或元组,那么这个元组也可以作关键字。但如果元组直接或间接地包含了可变对象,那么它就不能作关键字。列表不能用做关键字,因为列表可以通过索引,切片或"
433+
" :meth:`append` 和 :meth:`extend`之类的方法来改变。"
428434

429435
#: ../../tutorial/datastructures.rst:500
430436
msgid ""

0 commit comments

Comments
 (0)