I am trying to convert any dict to a list through a function, but it's not working and can't find out why

前端 未结 0 1980
清酒与你
清酒与你 2020-12-17 05:01
dict1 = {}
list1 = []

   def convert_to_list(entry):
    """ ... """
    for k, v in dict1:
        entry = (k, dict1[v])
        new_         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题