I Love Python. I Learn Python. I Teach Python. I Am a Python.

2014/07/10

教小孩 學 Python 程式語言,用 中文 及 英文。(01)

教小孩 學 Python 程式語言,用 中文 及 英文。

book 4 cover

LEVEL 1.5

Ch.1 - Introducing turtle
介紹 龜 畫圖

  •    >>> import the turtle module
    • 引入 龜模組
  •    >>> make your turtle move around in all directions
    • 叫你的 龜 在各個方向 四處移動
  •    >>> change what the turtle looks like.
    • 更改 龜 的外觀




https://gist.github.com/renyuanL/544f6ca7270bc7fde3a1




Ch.2 - Shapes, colour and repetition
形狀、顏色、重複

  •    >>> draw circles, squares and polygons
    • 畫 圓、方、多邊形
  •    >>> change the colour of your lines
    • 更改 線色
  •    >>> fill your shapes with colour
    • 填滿顏色於形狀之中
  •    >>> make Python do more with less code
    • 叫 Python 做多一點事、寫少一點程式碼

Ch.3 - Getting creative
來點創意

  •    >>> change the colour of the turtle, the background and the pen
    • 更改 龜、 背景 以及 筆 的顏色
  •    >>> fill shapes with colour
    • 把形狀填滿顏色
  •    >>> change the speed of the turtle
    • 更改 龜 速度
  •    >>> organise your code so that it is easy to experiment with.
    • 整理組織程式碼,使其易於實驗
https://gist.github.com/renyuanL/b11b92e9596cd92bbb7a






Building an art app:

建立 1 個 美術 應用程式

Ch.4 - From small beginnings
從小處開始


  •    >>> add background images to tkinter projects
    • 在 tkinter 專案中,加上背景圖。
  •    >>> write some more functions
    • 再多寫一些函數,增加程式的功能。
  •    >>> call functions with key presses on your keyboard.
    • 用鍵盤上的按鍵來呼叫那些函數。

Ch.5 - Red lines are not enough
只有紅線不夠


  •    >>> change the line colour
    • 改變線的顏色。
  •    >>> change the line thickness
    • 改變線的寬度。
  •    >>> attach functions to buttons instead of key presses
    • 改用滑數按鈕(button)來控制函數。
  •    >>> adjust the size of buttons.
    • 調整按鈕的大小。

Ch.6 - Stamping and painting
加上蓋印以及徒手畫


  •    >>> organise buttons into frames
    • 用「框」 來整理按鈕。
  •    >>> make a function to add an image to your canvas
    • 寫一個函數來加圖於 畫布 中。
  •    >>> attach functions to mouse movements.
    • 用滑鼠的「移動」來連結 函數。


https://gist.github.com/renyuanL/89106c0e4899544d0ad8





沒有留言:

張貼留言