标签:while class 实现 ... span style nbsp div color
total = 0 x = 1 y = 2 while y <= 100: total += x * y x += 2 y += 2 print(total)
实现1*2+3*4+5*6+7*8...+99*100
原文地址:http://www.cnblogs.com/zhangzihong/p/7092091.html