摘要:
#and or not #优先级,()> not > and > or #print(2 > 1 and 1 1 and 1 6 or 2 4 or 42) # T # print(2 > 1 and 3 5 and 2 2 and 3 5 and 2 > 1 or 9 1 and 3 5 and 2 > 1 and 9 > 8 or 7 1 and 3 5 and 2 > ... 阅读全文
摘要:
li=[11,22,33,44,55,77,88,99,90] result={} for row in li: if row > 66: if 'key1' not in result: result['key1']=[] result['key1'].append(row) else: if 'key2'... 阅读全文