教 青少年 寫程式 從 scratch 2.0 到 python 3.3
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 PresentationTRANSCRIPT
![Page 1: 教 青少年 寫程式 從 Scratch 2.0 到 Python 3.3](https://reader036.vdocuments.site/reader036/viewer/2022081415/568161c1550346895dd1a7bb/html5/thumbnails/1.jpg)
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
![Page 2: 教 青少年 寫程式 從 Scratch 2.0 到 Python 3.3](https://reader036.vdocuments.site/reader036/viewer/2022081415/568161c1550346895dd1a7bb/html5/thumbnails/2.jpg)
2
ryCatStar00 ,貓咪之星• http://scratch.mit.edu/projects/20615907/
![Page 3: 教 青少年 寫程式 從 Scratch 2.0 到 Python 3.3](https://reader036.vdocuments.site/reader036/viewer/2022081415/568161c1550346895dd1a7bb/html5/thumbnails/3.jpg)
3
• 主程式流程
![Page 4: 教 青少年 寫程式 從 Scratch 2.0 到 Python 3.3](https://reader036.vdocuments.site/reader036/viewer/2022081415/568161c1550346895dd1a7bb/html5/thumbnails/4.jpg)
4
• 畫三角形• 畫五邊形• 畫多邊形• 畫五星形• 畫貓咪之星
![Page 5: 教 青少年 寫程式 從 Scratch 2.0 到 Python 3.3](https://reader036.vdocuments.site/reader036/viewer/2022081415/568161c1550346895dd1a7bb/html5/thumbnails/5.jpg)
5
![Page 6: 教 青少年 寫程式 從 Scratch 2.0 到 Python 3.3](https://reader036.vdocuments.site/reader036/viewer/2022081415/568161c1550346895dd1a7bb/html5/thumbnails/6.jpg)
6
rySolveEquation00 ,解 2 元 1 次方程式• http://scratch.mit.edu/projects/20607239/
![Page 7: 教 青少年 寫程式 從 Scratch 2.0 到 Python 3.3](https://reader036.vdocuments.site/reader036/viewer/2022081415/568161c1550346895dd1a7bb/html5/thumbnails/7.jpg)
7
• 主程式流程
![Page 8: 教 青少年 寫程式 從 Scratch 2.0 到 Python 3.3](https://reader036.vdocuments.site/reader036/viewer/2022081415/568161c1550346895dd1a7bb/html5/thumbnails/8.jpg)
8
• 輸入方程式係數a, b, c,e, f, g
![Page 9: 教 青少年 寫程式 從 Scratch 2.0 到 Python 3.3](https://reader036.vdocuments.site/reader036/viewer/2022081415/568161c1550346895dd1a7bb/html5/thumbnails/9.jpg)
9
• 解 2 元 1 次方程式演算法,行列式計算。
![Page 10: 教 青少年 寫程式 從 Scratch 2.0 到 Python 3.3](https://reader036.vdocuments.site/reader036/viewer/2022081415/568161c1550346895dd1a7bb/html5/thumbnails/10.jpg)
10
![Page 11: 教 青少年 寫程式 從 Scratch 2.0 到 Python 3.3](https://reader036.vdocuments.site/reader036/viewer/2022081415/568161c1550346895dd1a7bb/html5/thumbnails/11.jpg)
11
ryArkanoid00 ,敲磚塊遊戲• http://scratch.mit.edu/projects/20604541/• http://scratch.mit.edu/projects/17662884/
![Page 12: 教 青少年 寫程式 從 Scratch 2.0 到 Python 3.3](https://reader036.vdocuments.site/reader036/viewer/2022081415/568161c1550346895dd1a7bb/html5/thumbnails/12.jpg)
12
• 球拍 (Paddle) 、球 (Tennis Ball)
![Page 13: 教 青少年 寫程式 從 Scratch 2.0 到 Python 3.3](https://reader036.vdocuments.site/reader036/viewer/2022081415/568161c1550346895dd1a7bb/html5/thumbnails/13.jpg)
13
• 磚塊 (block)
![Page 14: 教 青少年 寫程式 從 Scratch 2.0 到 Python 3.3](https://reader036.vdocuments.site/reader036/viewer/2022081415/568161c1550346895dd1a7bb/html5/thumbnails/14.jpg)
14
• 失敗精靈、勝利精靈
![Page 15: 教 青少年 寫程式 從 Scratch 2.0 到 Python 3.3](https://reader036.vdocuments.site/reader036/viewer/2022081415/568161c1550346895dd1a7bb/html5/thumbnails/15.jpg)
15
• Pong with High Score– http://scratch.mit.edu/projects/12778537/
• 由此延伸出去,看看別人如何寫程式。• http://scratch.mit.edu/projects/12778537/remixes
![Page 16: 教 青少年 寫程式 從 Scratch 2.0 到 Python 3.3](https://reader036.vdocuments.site/reader036/viewer/2022081415/568161c1550346895dd1a7bb/html5/thumbnails/16.jpg)
16
![Page 17: 教 青少年 寫程式 從 Scratch 2.0 到 Python 3.3](https://reader036.vdocuments.site/reader036/viewer/2022081415/568161c1550346895dd1a7bb/html5/thumbnails/17.jpg)
17
Python
• 如何像電腦科學家一樣的思考– 用 Python 3 來學習– https://dl.dropboxusercontent.com/u/33089565/r
y2014_thinkcspy/html/index.html
![Page 18: 教 青少年 寫程式 從 Scratch 2.0 到 Python 3.3](https://reader036.vdocuments.site/reader036/viewer/2022081415/568161c1550346895dd1a7bb/html5/thumbnails/18.jpg)
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
![Page 19: 教 青少年 寫程式 從 Scratch 2.0 到 Python 3.3](https://reader036.vdocuments.site/reader036/viewer/2022081415/568161c1550346895dd1a7bb/html5/thumbnails/19.jpg)
19
Python 程式語言很簡單
• https://dl.dropboxusercontent.com/u/33089565/ry2014_thinkcspy/html/_ryTest01.html
• 列出 99 乘法表• 列出 100 以內的質數• 求二元一次方程式的解• 小烏龜
![Page 20: 教 青少年 寫程式 從 Scratch 2.0 到 Python 3.3](https://reader036.vdocuments.site/reader036/viewer/2022081415/568161c1550346895dd1a7bb/html5/thumbnails/20.jpg)
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) ….