Tuple(元組)
很類似list的東西
tp = ('a', 'b') # 新建立
print(tp[1]) # 取值
> bironman_tuple = ("中信兄弟", "統一獅", "lamigo", "富邦悍將")
ironman_list = ["brother","lion","monkey","Guardians"]
tuple_to_list = list(ironman_tuple)
list_to_tuple = tuple(ironman_list)tuple to string
Last updated