2025/12/30(二) 19:00-20:30
- 今日教學進度:
- 教師帶領佳恩複習 Khan Academy: Intro to computer science - Python/Unit 3: Simulating phenomena with loops/Lesson 1: Module imports/Challenge: Avatar generator 全部完成
- 作業指派:
- 請佳恩複習今天學習的單元程式設計
- Carmen likes to jump straight into the game, but Krista likes to spend time customizing her avatar. Can we give players an option to select specific features, and only randomize as the default?
- Krista wants to support a multiplayer mode where each of two players gets a randomized avatar, but if the avatars look the same, the players might get confused. How can we ensure two avatars are unique?
- main.py
- import avatar
- import random
- bow_ran = random.randint(1,3)
- if bow_ran == 1:
- avatar.draw_bow()
- avatar.draw_eyes("medium")
- nose_ran = random.randint(1,2)
- if nose_ran == 1:
- nose_shape = "triangle"
- else:
- nose_shape = "button"
- avatar.draw_nose(nose_shape)
- mouth_ran = random.randint(1,4)
- if mouth_ran == 1 or mouth_ran ==2:
- mouth_shape = "smile"
- elif mouth_ran == 3:
- mouth_shape = "neutral"
- else:
- mouth_shape = "teeth"
- avatar.draw_mouth(mouth_shape)
- if bow_ran == 2:
- avatar.draw_bow()
- avatar.py
- """Draws facial features to construct a unique game avatar."""
- def draw_bow():
- """Draws a bow, which can be worn as a bowtie or a hair accessory."""
- print("!>o<!")
- def draw_eyes(size):
- """Draws eyes of the size "small", "medium", or "large"."""
- if size == "small":
- print(". .")
- elif size == "medium":
- print("o o")
- elif size == "large":
- print("O O")
- else:
- raise ValueError("invalid eye size")
- def draw_nose(shape):
- """Draws a nose with the shape "button" or "triangle"."""
- if shape == "button":
- print(" @ ")
- elif shape == "triangle":
- print(" > ")
- else:
- raise ValueError("invalid nose shape")
- def draw_mouth(expression):
- """Draws a mouth with the expression "smile", "neutral", or "teeth"."""
- if expression == "smile":
- print("\\___/")
- elif expression == "neutral":
- print("-----")
- elif expression == "teeth":
- print("(|||)")
- else:
- raise ValueError("invalid mouth expression")
- 下次課程計畫:
- 下次課程日期預計:2025/1/27(二)。
- 檢閱上次作業派執行狀況。
- 教師指導佳恩寫程註解。
- 教師帶領佳恩複習 Khan Academy: Intro to computer science - Python/Unit 3: Simulating phenomena with loops/Lesson 2: While loops/Challenge: Dice rolls
- import random
- experiment_times = int(input("How many times do you want \
- to repeat the experiment? "))
- dice_number = int(input("How many dice do you want? "))
- dice_total = 0
- time_break = 0
- i = 1 # for counting while loop
- while i <= experiment_times:
- # Roll dice_number six-sided dice.
- dice_sum = 0
- for n in range(dice_number):
- die = random.randint(1,6)
- dice_sum = dice_sum + die
- print("You rolled a " + str(dice_sum) + "!")
- dice_total = dice_total + dice_sum
- time_break = i
- if dice_total >= 100:
- break
- i = i + 1
- dice_average = dice_total / time_break
- print("The total of dice roll for " + \
- str(time_break) + " times is " + str(dice_total))
- print("The average of dice roll for " + \
- str(time_break) + " times is " + str(dice_average))
- 備用教材:
- GEPT中級聽力AI 生成提示語模板 & ElevenLags TTS Dialogue
- 中文作文:啟承轉合
- 《AI雙語字詞發展策略》
- 字源分析:《旋元佑英文字彙》,單字例句MP3
- 字彙學習:語意場 + 語用場
- 擴展單字策略:字根 vs 50語意
- 《抄寫英語的奇蹟》的 Day9, Day10, Day11。
- 聽力練習:(全文)
- 被動聆聽:習慣發音、語調和節奏。
- 同步聆聽和默讀。
- 口說訓練:(全文)
- 逐句跟唸。
- 同步跟唸。
- 邊唸邊寫。
- 閱讀訓練:(選擇)文章中的句子和段落,進行分析語法、語意、和語用。
- 寫作訓練:(選擇)文章中的句子和段落,進行改寫、換句話說、拆句、併句。
- 擴充單字訓練:(選擇)文章中的字詞,進行語意場分析和造句。
- 《完美英語之心靈盛宴》 的一般使用方法,透過 ChatGPT 生成 1) 換句話說:用不同的說法闡明原短句之涵意,提昇用英文解釋英文的能力,以及用英文思考的能力。2) 造長句:使用不同的結構來造長句,提升應用短句的能力,以及閱讀和寫作長句的能力。3) 語用分析:從某句話推論說話者的意圖和隱含的意思,以及這句話適用的各種情境。
- 《完美英語之心靈盛宴》第84頁 Book1 Part2 Unit6 拒絕失敗。
- Refuse to lose. 拒絕失敗。Refuse to give up. 拒絕放棄。Persistence wins the day. 堅持才會贏。Don't worry about failures. 不要擔心失敗。Worry about missed chances. 擔心錯過機會。Always try, try, try! 永遠嘗試再嘗試。Turn the tables. 反敗為勝。Turn the tide. 扭轉乾坤。 Reverse the situation. 反轉局勢。
- 《完美英語之心靈盛宴》第502頁 Book4 Part1 Unit3 「不要選邊站」。
- Don't take sides. 不要選邊站。Be on everyone's side. 要站在所有人這一邊。Be friendly to all. 對人人友善。Everyone is unique. 每個人都獨一無二。Everyone to his taste. 各有所好。To each his own. 各有所好。Never blame others. 不要責備他。Never point a finger at others. 不要指責他人。It reflects badly on you. 這會為你帶來負面影響。
- 《Heart of the Matter》Part 1 - Chapter 1 第 4-9 段。
