We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 372e828 commit 39ed3c5Copy full SHA for 39ed3c5
5rangeCase
@@ -0,0 +1,8 @@
1
+"""
2
+定义一个数字变量num,内容随意
3
+并使用range()语句,获取从1到num的序列,使用for循环遍历它
4
+在遍历过程中,统计有多少偶数出现
5
+提示:
6
+1.可以使用:range(1,num)得到
7
+2.偶数通过if来判断,判断数字除以2余数是否为0即可
8
0 commit comments