7. 如何让python代码更 Pythonic : 1.变量交换: a, b = b, a 2.带有索引位置的集合遍历: colors = ['red', 'green', 'blue', 'yellow'] for i, color in enumerate(colors): print i, '--->', color 3.字符串连接: names = ['raymond', 'rachel', 'matthew', 'roger','betty', 'melissa', 'judith'…