列表推导式(list comprehension)Python2:>>> x = 'my homie' >>> dummy = [x for x in 'ABC'] >>> x 'C' Python3: