【文件属性】:
文件名称:序列类型—字符串、列表、元组-python基础培训
文件大小:998KB
文件格式:PPT
更新时间:2021-04-25 09:19:04
python基础
序列类型—字符串、列表、元组
序列:成员有序排列,可以通过下标访问其成员
字符串:‘hello’ “hello” ’’’hello’’’
列表:[2,4,’python’]
[2.4, 6.8, ‘python’, [1, 3, “hello world”]]
元组:(3.3, 6, “computer”)
(4, (“hello”, 9), [1.1, 5.7, 8])
序列有相同的访问方式:
*
举例子:正数下标 负数下标