Last active
August 29, 2015 14:03
-
-
Save renyuanL/544f6ca7270bc7fde3a1 to your computer and use it in GitHub Desktop.
makeTurtleSayHi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
ryHello_world.py | |
呂仁園, 2014/07/18 | |
本程式需要中文龜模組 turtle_tc.py | |
https://github.com/renyuanL/pythonTurtleInChinese/blob/master/turtle_tc.py | |
''' | |
from turtle_tc import * | |
# | |
# 設定筆大小以及形狀 | |
# | |
筆大小(5); 形狀(龜形) | |
# | |
# 畫字母 H | |
# | |
左轉(90); 前進(100); 後退(50) | |
右轉(90); 前進(40) | |
左轉(90); 前進(50); 後退(100) | |
# | |
# 移動到下個字母位置 | |
# | |
提筆();右轉(90);前進(40);左轉(90); 下筆() | |
# | |
# 畫字母 i | |
# | |
前進(50); 提筆(); 前進(25); 下筆() | |
# | |
# 等著操作視窗界面 | |
# 目前只提供【結束】功能 | |
# 請點擊視窗右上角之 結束紐[X]。 | |
# | |
進入主迴圈() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment