1 n = 1 2 s = 0 3 SeatID=1 4 while n <= 100*SeatID: 5 s += n 6 n += 2 7 8 print ‘奇数的和:%d‘%(s)
原文地址:https://www.cnblogs.com/Python-XiaCaiP/p/8521463.html
时间: 2024-11-02 17:49:54
1 n = 1 2 s = 0 3 SeatID=1 4 while n <= 100*SeatID: 5 s += n 6 n += 2 7 8 print ‘奇数的和:%d‘%(s)
原文地址:https://www.cnblogs.com/Python-XiaCaiP/p/8521463.html