Python list初始化,1、基本方法。lst = [1, 2, 3, 4, 5]2、初始化连续数字。>>> lst = [n for n in range(5, 10)]>>> print(lst)[5, 6, 7.
確定! 回上一頁