python列表生成式和元组生成式
列表生成式,生成列表list_a = [1, 2, 3]list_c = list((4, 5, 6)) # list_c == [4, 5, 6]list_d = [i for i in list_a] # list_d == [1, 2, 3]list_e = [i*j for i in list_a for j in list_c] # list_e == [...