课程
/后端开发
/Python
/初识Python
print [(2*x-1)*2*x for x in range(1,51)]
2018-05-20
源自:初识Python 10-1
正在回答
print [x*(x+1) for x in range(1,100,2)]
[2, 12, 30, 56, 90, 132, 182, 240, 306, 380, 462, 552, 650, 756, 870, 992, 1122, 1260, 1406, 1560, 1722, 1892, 2070, 2256, 2450, 2652, 2862, 3080, 3306, 3540, 3782, 4032, 4290, 4556, 4830, 5112, 5402, 5700, 6006, 6320, 6642, 6972, 7310, 7656, 8010, 8372, 8742, 9120, 9506, 9900]希望你能满意。
举报
学python入门视频教程,让你快速入门并能编写简单的Python程序