元组

性能优化

编译时确定,元组内建议放不可变对象

因不可变线程安全

因不可变可以作为dict的key,可哈希  list不可以

拆包特性

tuple1 = (1,2,3)

one,two,three = tuple1

one,*arge = tuple1

1,[2,3]

posted @ 2020-09-05 11:04  寂静音无  阅读(124)  评论(0)    收藏  举报