用python实现求0-100全部偶数项和

num = 0 s_num = 0 while num <= 100: if num % 2 == 0: s_num += num num += 1 print(s_num) 仅供参考python
相关文章
相关标签/搜索