有两个列表,将列表A里的元素作为键,将列表B里的对应元素作为值,组成一个字典。 def list_to_dictionary(keys, values):. return dict(zip(keys, values)).
確定! 回上一頁