Python@TW: 會眾| IRC| Planet| 郵件列表| 聯絡我們
修訂版 1 和 47 的差異如下: (間隔 46 版)
2011-06-01 12:41:06 修訂第 1 版
大小: 368
編輯者: keitheis
說明:
2018-01-07 12:11:42 修訂第 47 版
大小: 157
編輯者: host-158
說明:
這個顏色代表刪除的 這個顏色代表增加的
行號 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()

Python/IDE或編輯器 (上次是 61-223-106-232 在 2018-02-11 21:34:51 編輯的)