标签: python-2.7
def solution(number): x = 0 total = 0 while x < number: if x % 3 == 0 or x % 5 == 0: total = total + x x = x + 1 print total return total solution(10)
您好,当我通过IDE运行此代码时,没有任何反应。 它有什么问题?没有任何错误或任何错误。