📜  追加到列表 python - TypeScript 代码示例

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

代码示例2
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]