python3笔记 4 Python中表示'组'的概念与定义

4-1 列表的定义 列表是可变的 >>> type([1,2,3,4,5,6]) <class 'list'> >>> type(['hello',1,2,3]) <class 'list'>    //列表中可以有不同的数据类型 >>> type([[1,2],[3,4],[True]])    <class 'list'>    //列表中嵌套列表,二维数组,python中叫做嵌套列表 4-2
相关文章
相关标签/搜索