python实例:1-100之间的偶数相加

来源:互联网 发布:sql 什么情况用union 编辑:程序博客网 时间:2024/04/29 07:28
sum([i for i in range(101) if i%2==0])
0 0
原创粉丝点击