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
''' | |
ryYinyang.py | |
用 繁體中文(traditional Chinese) | |
龜模組 turtle_tc.py | |
示範 龜 畫 陰陽 太極圖。(YinYang TaiJi) | |
please find turtle_tc.py here | |
http://goo.gl/lnrl24 |
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
''' | |
布幕龜.py | |
呂仁園,2014/08/01 | |
''' | |
from turtle_tc import TK, 龜幕類, 原龜類, 範圍, 隨機數 | |
def 隨機色(): | |
r,g,b= [int(隨機數()*256) for i in 範圍(3)] | |
return '#%02x%02x%02x'%(r,g,b) | |
窗= TK.Tk(); 窗.title('布、幕、龜。') | |
N= 4; M= int(N**.5);n= 0 |
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
''' | |
ryTk001.py | |
窗、單、布、文類 | |
手畫、紀錄軌跡座標 | |
選單、動作。 | |
呂仁園,2014/08/01 |
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
''' | |
ry美術應用.py | |
ryBonusArtApp2-001.py | |
呂仁園, 2014/07/10, 07/31 | |
''' | |
# 改自 BonusArtApp2.py |
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
''' | |
畫圖程式001.py | |
作者:呂仁園,2014/07/31 | |
''' | |
# 想寫一個畫圖程式 | |
# 電腦開一個畫布。 | |
# 玩家用滑鼠在畫布上移動。 | |
# 電腦能追蹤到玩家滑鼠的座標 x,y。 | |
# 電腦在 x,y 處畫小圓。 |
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
''' | |
猜數字遊戲004.py | |
作者:呂仁園,2014/07/31 | |
''' | |
#想寫一個猜數字遊戲。 | |
#首先,電腦先製造出1個神奇數(就是答案啦)。 | |
#叫玩家隨便猜1個幸運數。 | |
#檢查猜中與否。 | |
#提示幸運數太高或太低。 |
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
# | |
# myEtchASketch.py, 我的蝕刻繪圖板02.py | |
# a application from Coding Club: Python Basics | |
# by Chris Roffey, 翻譯、改作:呂仁園。 | |
# | |
from tkinter import * | |
##### 設定 全區變數 (global variables): |
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
''' | |
Tk的事件.py | |
Ref: | |
http://effbot.org/tkinterbook/tkinter-events-and-bindings.htm | |
''' | |
from tkinter import * | |
窗= Tk() |
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
''' | |
ryEasyGuiEx001.py | |
除了 turle.py 之外, | |
easygui.py | |
也值得初學者留意。 | |
呂仁園, 2014/07/24 | |
''' |
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
''' | |
ryTk001.py | |
示範 tkinter 的範例。 | |
Renyuan Lyu, 呂仁園,2014/07/23,颱風夜。 | |
''' | |
import tkinter | |
範例01= ''' | |
tk= tkinter.Tk() |