14.returnspa
# print(1) 能夠被執行 def doubelNumber(num): print(1) return num * 2 print(2) Afnum = doubelNumber(100) print(Afnum)
run結果:code
15.while 循環blog
# while 循環 i = 1 while i <= 8: print("$"*i) i = i + 1
run結果:class
16.for 循環循環