2019-03-20 再帰関数 https://qiita.com/jumpyoshim/items/20e6b5e70efa466699b4 この例がわかりやすい。 def sum(n): if n <= 0: return n return n + sum(n-1)