weixin_39816946的博客 I want in the end a list: myList = [1609.32,57813.48,991.31] 解决方案 Try this way: my_list = [elem[0] for elem in your_dict.values()] Offtop: I think you shouldn't use camelcase, it isn't python way...
XerCis的博客文章目录 问题描述 zip for循环 列表推导式 itertools more_itertools 参考文献 问题描述 Python 列表一次取两个元素 zip l = [1, 2, 3, 4, 5] result = [] for i, j in zip(l[0::2], l[1::2]): result.append((i, j...