Commit 64974635 by BellCodeEditor

auto save

parent 4ea37e4a
Showing with 15 additions and 0 deletions
...@@ -14,3 +14,17 @@ for i in range(300): ...@@ -14,3 +14,17 @@ for i in range(300):
# 隐藏画笔,保存画布 # 隐藏画笔,保存画布
pen.hideturtle() pen.hideturtle()
turtle.done() turtle.done()
for 循环:
有限次循环, 强调的是循环次数
循环次数 range() 范围 range(范围的起始位置 , 范围的终止位置+1 , 步长)
循环次数怎么算:终止位置+1 - 起始位置
range(5,10) 循环几次:5
一般情况。起始位置默认为0 ,终止位置,默认为循环次数 range(0,300) 300 0-299
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment