#while 迴圈
n
=
1
while
n<
5
:
print
(n)
#輸出所有true迴圈
+
12345
sum
0
3
(
)
#紀錄累加的結果
6
#for 迴圈
for
x
in
"apple"
(x)
#輸出列表
apple
range
):
#range代表列表包含開頭不包含結束
01234
,
10
#累加結果5+6+7...+9
35
Copyright © All rights reserved | This template is made with by Colorlib