列表用 中括號[], 列表中各元素用逗號(,)分隔
>>> []
[]
>>> test1=[]
>>> len(test1) #檢查元素個數
0
>>> test2=[1]
>>> len(test2) #檢查元素個數
1
>>> test3=[1,2]
列表的元素可以是列表
>>> tests=['Tom','John','Jim']
>>> len(tests)
3
>>> testx=[1,2,3,tests]
>>> len(testx)
4
>>> print(testx)
[1, 2, 3, ['Tom', 'John', 'Jim']]
>>>