Here are 4 ways to extract dictionary keys as a list in Python: (1) Using a list() function: my_list = list(my_dict). (2) Using dict.keys():
確定! 回上一頁