Upload
zavad
View
240
Download
0
Embed Size (px)
DESCRIPTION
教 青少年 寫程式 從 Scratch 2.0 到 Python 3.3. Renyuan Lyu 呂仁園 長庚大學,資訊系. http://scratch.mit.edu/users/ryTemp2014_001/ https://dl.dropboxusercontent.com/u/33089565/ry2014_thinkcspy/html/_ryTest01.html. ryCatStar00 ,貓咪之星. http://scratch.mit.edu/projects/20615907/. 主程式流程. 畫三角形 畫五邊形 畫多邊形 畫五星形 - PowerPoint PPT Presentation
Citation preview
1
教 青少年 寫程式從 Scratch 2.0 到 Python 3.3
Renyuan Lyu呂仁園長庚大學,資訊系http://scratch.mit.edu/users/ryTemp2014_001/
https://dl.dropboxusercontent.com/u/33089565/ry2014_thinkcspy/html/_ryTest01.html
2
ryCatStar00 ,貓咪之星• http://scratch.mit.edu/projects/20615907/
3
• 主程式流程
4
• 畫三角形• 畫五邊形• 畫多邊形• 畫五星形• 畫貓咪之星
5
6
rySolveEquation00 ,解 2 元 1 次方程式• http://scratch.mit.edu/projects/20607239/
7
• 主程式流程
8
• 輸入方程式係數a, b, c,e, f, g
9
• 解 2 元 1 次方程式演算法,行列式計算。
10
11
ryArkanoid00 ,敲磚塊遊戲• http://scratch.mit.edu/projects/20604541/• http://scratch.mit.edu/projects/17662884/
12
• 球拍 (Paddle) 、球 (Tennis Ball)
13
• 磚塊 (block)
14
• 失敗精靈、勝利精靈
15
• Pong with High Score– http://scratch.mit.edu/projects/12778537/
• 由此延伸出去,看看別人如何寫程式。• http://scratch.mit.edu/projects/12778537/remixes
16
17
Python
• 如何像電腦科學家一樣的思考– 用 Python 3 來學習– https://dl.dropboxusercontent.com/u/33089565/r
y2014_thinkcspy/html/index.html
18
CPU, RAM, HardDisk
• Computer Components– https://www.youtube.com/watch?v=rK3YxmkarIg
– In this section you learn a little about the architecture of a computer and some general terms to use when talking about computer programs. This includes:• CPU - Central Processing Unit• RAM - Random Access Memory• Hard Drive - A Persistent Storage Device
19
Python 程式語言很簡單
• https://dl.dropboxusercontent.com/u/33089565/ry2014_thinkcspy/html/_ryTest01.html
• 列出 99 乘法表• 列出 100 以內的質數• 求二元一次方程式的解• 小烏龜
20
Hello, little turtles!嗨,小烏龜!• https://dl.dropboxusercontent.com/u/330895
65/ry2014_thinkcspy/html/hello_little_turtles.html
from turtle import *
def main(): mode("logo") speed(10) shape("arrow") pensize(3) circle(66) rt(180) circle(66) pu() lt(90) fd(33) rt(90) ….