用Python實現一個1加到n 求和功能的函式2019-02-17 254 用Python寫一個函式實現1+2++n的功能。 方法1、使用for迴圈def accSum(n): sum = 0 for i in range(1, n+1): ...
確定! 回上一頁