摘要: list1 = [11,22,33,44,55,66,77,88,99,100]#所有大于66的值放到第一个key里,所有小于66的值放到第二个key里dic = {} for i in list1: if i < 66: if 'k1' in dic.keys(): dic['k1'].appen 阅读全文
posted @ 2022-11-10 17:16 one_brightest_star 阅读(24) 评论(0) 推荐(0) 编辑