Python实现1-100之和
2021-03-10 11:28
阅读:720
标签:nbsp rgba color ret class turn code span def Python实现1-100之和 标签:nbsp rgba color ret class turn code span def 原文地址:https://www.cnblogs.com/fuxinxin/p/14152577.html
def sum():
sum = 0
for n in range(1, 101):
sum = sum + n
return sum
print(sum())
评论
亲,登录后才可以留言!