ZhangZhihui's Blog |
|
||
2024年8月17日
摘要:
# Note that this function is already available in the math module as fsum(). def number_sum(n): if n == 0: return 0 else: return n + number_sum(n - 1) 阅读全文
|
Copyright © 2024 ZhangZhihuiAAA
Powered by .NET 9.0 on Kubernetes |