实现1*2+3*4+5*6+7*8...+99*100
摘要:total = 0 x = 1 y = 2 while y <= 100: total += x * y x += 2 y += 2 print(total)
阅读全文
posted @ 2017-06-28 23:06
posted @ 2017-06-28 23:06
posted @ 2017-06-27 23:51
posted @ 2017-06-16 14:56
posted @ 2017-06-16 14:44
posted @ 2017-06-15 17:14
posted @ 2017-06-01 14:16
posted @ 2017-06-01 14:05