CHSHJ 发表于 2018-8-12 09:02:13

python序列

  l=list(range(5))
  type(l)
  l
  t=tuple(range(5))
  type(t)
  t
  l=9
  t=9   error
  l.append(2)
  t.append(2)   error
  tuple 不支持原位改变
  通过上边的语句来区分list与tuple的区别
  python 区分大小写
页: [1]
查看完整版本: python序列