Dmitry Telenkov 1 年之前
父节点
当前提交
c72de2fd8d
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      courses/python_for_begginers/misc.py

+ 9 - 0
courses/python_for_begginers/misc.py

@@ -610,3 +610,12 @@ print(a, b, c, d)
 
 # pprint(person)
 
+def test_list(l: list, val: int) -> None:
+    l.append(4)
+    val = 8
+
+a = 7
+my_list = [1, 2, 3]
+
+test_list(my_list, a)
+print(my_list, a)