python 列表生成式

r = [x*x for x in range(10)]

r list类型

原文地址:https://www.cnblogs.com/yangxiaolan/p/5639569.html