a = [x+y for x in ['Python ','C '] for y in ['Language','Programming']]
print(a)
the output is ['Python Language', 'Python Programming', 'C Language', 'C Programming']
(输出为['Python Language', 'Python Programming', 'C Language', 'C Programming']
)
I thought that two list added together should be like ['Python ','C ','Language','Programming']
(我认为将两个列表加在一起应该像['Python ','C ','Language','Programming']
)
ask by Jason Lu translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…