36 Matching Annotations
  1. Dec 2020
    1. One way to create a dictionary is to start with the empty dictionary and add key-value pairs. The empty dictionary is denoted {}

      创建字典的一种方法是从空字典开始并添加键-值对。空字典表示为{}

    1. If we want to modify a list and also keep a copy of the original, we need to be able to make a copy of the list itself, not just the reference. This process is sometimes called cloning,

      如果我们想修改一个列表,同时保留原始列表的副本,我们需要能够复制列表本身,而不仅仅是引用。这个过程有时被称为克隆,

    1. Lists are similar to strings, which are ordered collections of characters, except that the elements of a list can have any type and for any one list, the items can be of different types.

      列表类似于字符串,字符串是有序的字符集合,不同之处在于列表的元素可以是任何类型,而且对于任何一个列表,项可以是不同类型。