python中set、list、tuple、dict相互轉化

list1 = [1, 2, 3, 4] tuple1 = (5, 6, 7, 8) set1 = {9, 10, 11, 12} dict1 = {"a": "13", "b": "14", "c": "15", "d": "16"} 轉爲listweb print(list(tuple1)) = [5, 6, 7, 8] print(list(set1)) = [9, 10,
相關文章
相關標籤/搜索