收起
def fun(n): s = 1 r = 0 while s<=n: if s % 3 == 0: r += s s += 1 return r print(fun(10))
如果对你有帮助,可以点击我这个回答右上方的【采纳】按钮,给我个采纳吗,谢谢
报告相同问题?