📜  附加到列表 python 代码示例

📅  最后修改于: 2022-03-11 14:47:24.654000             🧑  作者: Mango

代码示例6
list = [1, 2, 3]
  print list.append(4)   ## NO, does not work, append() returns None
  ## Correct pattern:
  list.append(4)
  print list  ## [1, 2, 3, 4]