count=1 sum=0 while count<=100: sum+=count count+=2 print(sum)
python - 基础算法题 - 对1~100所有数奇数和
原文:https://www.cnblogs.com/bigbigbird/p/11170789.html