用python实现从1加到100的三种方法: for循环,while循环,导入模块法 · def sum(): · sum = 0 · for n in range(1,101): · sum = sum + n · return sum · print( ...
確定! 回上一頁