通常,列表将包含单个项类型的项目,但也可以包括若干不同类型。
列表也可以嵌套在其他列表中。
number
=
3
things
[
"string"
,
0
, [
1
2
, number],
4.56
]
print
(things[
])
][
结果:
>>>