1. 定义 用括号 >>> tuple = (1 ,2 ,3) >>> tuple (1, 2, 3) >>> 2. 引用 用中括号 >>> tuple (1, 2, 3) >>> tuple[2] 3 >>> tuple[0] 1 >>> 3. 修改 不能修改! 4. 一般是用在格式化字符串和作为字典的key >>> dict = { tuple : '123' } >>> dict {(1, 2, 3): '123'} >>> dict[tuple] '123' >>> "%d + %d = %d" % tuple '1 + 2 = 3' >>>