Python tuple

      Python的元组与列表类似,不同之处在于元组的元素不能修改 Basic operations tuple1=(1,2,"a") tuple1 tuple2=1,2,3,"a","b","c" tuple2 #元组中只包含一个元素时,需要在元素后面添加逗号 tuple3=(1) type(tuple3) int tuple4=(1,) type(tuple4) tuple t
相关文章
相关标签/搜索