python如何求1到100的奇数和 python求1到100的奇数和的方法: 只要条件满足,就不断循环,条件不满足时退出循环。 sum = 0 n = 99 while n > 0: sum = sum + n n = n – 2 … 继续阅读 python如何求1到100的奇数和