368
說明:
|
157
|
這個顏色代表刪除的 | 這個顏色代表增加的 |
行號 1: | 行號 1: |
跨平台:Emacs, Vim | from turtle import* |
行號 3: | 行號 3: |
Windows: [[http://ez2learn.com/index.php/python-tutorials/python-basic-tutorials/158-python|IDLE|target="_blank"]], Notepad++ Mac: [[http://www.barebones.com/products/textwrangler/|TextWrangler]], [[http://macromates.com/|Textmate (商業軟體)|target="_blank"]] Linux: [[http://projects.gnome.org/gedit|gedit|target="_blank"]], kate |
def square(x): for i in range(4): forward(x) left(90) x=x+20 for j in range(4): square(60) left(90) done() |
from turtle import*
def square(x):
- for i in range(4):
- forward(x) left(90) x=x+20
for j in range(4):
- square(60) left(90)
done()