SlideShare a Scribd company logo
課程總結
學習目標 單元名稱(題數) 配分 得分 完成率 時間
公告 公告-範例(4) 80 80 100% 2022/10/16
公告總結 80 80 100% 2022/9/26
輸出語句 輸出語句(8) 127 127 100% 2022/9/26
輸出語句總結 127 127 100% 2022/12/16
變數宣告 變數宣告與賦值(11) 110 110 100% 2022/12/16
浮點數與其輸出格式(9) 112 107 95% 2022/9/26
文字型態與輸出(彈)(7) 40 40 100% 2022/11/21
變數宣告總結 262 257 98% 2022/11/21
輸入語句 輸入語句(10) 120 115 95% 2022/9/26
輸入語句總結 120 115 95% 2022/10/24
運算 加法與轉型(8) 120 120 100% 2022/10/24
算術運算子(12) 122 117 95% 2023/1/9
關係與邏輯運算子(10) 120 120 100% 2022/10/18
運算總結 362 357 98% 2023/1/9
判斷結構 判斷式-if(9) 112 112 100% 2022/11/7
判斷式-if else(8) 105 105 100% 2022/11/21
巢狀選擇(4) 112 60 53% 2022/11/21
多選一(6) 105 78 74% 2022/11/21
判斷結構總結 435 356 81% 2022/11/21
重複結構 重複-計數器控制(7) 115 115 100% 2022/11/21
重複-警示值控制(11) 102 102 100% 2022/11/21
for(9) 107 106 99% 2022/12/5
重複結構總結 537 324 60% 2022/12/22
函式 自訂函式(15) 117 65 55% 2022/12/22
[科技應用專題三自], 30137 , 沈宏霖
Page 1, 沈宏霖(30137)@科技應用專題三自
學習目標 單元名稱(題數) 配分 得分 完成率 時間
函式總結 225 65 29% 1900/2/1
資料結構 串列的一維陣列(8) 40 40 100% 2023/1/9
串列的建立(11) 105 48 45% 2023/1/9
串列的使用(7) 105 32 30% 2023/1/9
元組(4) 20 5 25% 2023/1/16
集合(10) 117 14 12% 2023/1/16
字典(10) 102 10 10% 2023/1/16
資料結構總結 522 149 28% 2023/1/16
綜合應用 附錄A1-迴圈多多練習(9) 100 28 28% 2023/1/16
綜合應用總結 200 28 14% 1900/2/1
[科技應用專題三自], 30137 , 沈宏霖
Page 2, 沈宏霖(30137)@科技應用專題三自
參考資料
[1]公告-範例
Page 3, 沈宏霖(30137)@科技應用專題三自
- -
總結
[1]公告-範例
Page 3, 沈宏霖(30137)@科技應用專題三自
# 名稱 配分 得分 次數 時間
1 視訊會議 20.00 20.0 1 2022/10/16 上午9:46:51
2 Jamboard 20.00 20.0 1 2022/10/16 上午9:46:48
3 期初前測 20.00 20.0 1 2022/10/16 上午9:46:44
4 成績計算 20.00 20.0 1 2022/10/16 上午9:46:32
80 80
1. 視訊會議 (題目)
配分: 20.00 題型: 選擇-單選題
1. 視訊會議 (答案)
最後一次判分時間: 2022/10/16 上午9:46:51 花費秒數: 0 判分次數: 1
# 得分 配分 你的答案 正確答案
0 20 20 A A
2. Jamboard (題目)
配分: 20.00 題型: 選擇-單選題
2. Jamboard (答案)
最後一次判分時間: 2022/10/16 上午9:46:48 花費秒數: 0 判分次數: 1
# 得分 配分 你的答案 正確答案
0 20 20 A A
3. 期初前測 (題目)
配分: 20.00 題型: 選擇-單選題
3. 期初前測 (答案)
最後一次判分時間: 2022/10/16 上午9:46:44 花費秒數: 0 判分次數: 1
# 得分 配分 你的答案 正確答案
0 20 20 A A
4. 成績計算 (題目)
配分: 20.00 題型: 選擇-單選題
4. 成績計算 (答案)
最後一次判分時間: 2022/10/16 上午9:46:32 花費秒數: 0 判分次數: 1
# 得分 配分 你的答案 正確答案
0 20 20 A A
參考資料
[2]輸出語句
Page 12, 沈宏霖(30137)@科技應用專題三自
輸出語句(PDF) //www.18dice.tw/fs/materials/Python/111/A1-輸出語句.pdf
輸出語句(影音) https://www.youtube.com/embed/3Zc63TgHR7M
總結
[2]輸出語句
Page 12, 沈宏霖(30137)@科技應用專題三自
# 名稱 配分 得分 次數 時間
1 SayHello 20.0 20.0 2 2022/9/26 上午11:11:20
2 印三角形 20.0 20.0 1 2022/9/26 上午11:12:33
3 不是計算 20.0 20.0 1 2022/9/26 上午11:12:50
4 多列資料 20.0 20.0 3 2022/9/26 上午11:40:02
5 身高體重 20.0 20.0 1 2022/9/26 上午11:34:32
6 彈:不換行 5.0 5.0 1 2022/9/26 上午11:35:40
7 彈:中間有空格 5.0 5.0 1 2022/9/26 上午11:36:34
8 選擇題 17.50 17.5 8 2022/9/26 上午11:38:23
127 127
1. SayHello
分數: 20.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
20.0 2 2022/9/26 上午11:11:20
程式語言 程式碼
Python print("Hello, World!")
2. 印三角形
分數: 20.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
20.0 1 2022/9/26 上午11:12:33
程式語言 程式碼
Python '''
2_2.輸出語句-印三角形(20.0)
'''
print("*")
print("**")
print("***")
print("****")
print("*****")
print("******")
3. 不是計算
分數: 20.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
20.0 1 2022/9/26 上午11:12:50
程式語言 程式碼
Python '''
2_3.輸出語句-不是計算(20.0)
'''
print("2-3=5")
4. 多列資料
分數: 20.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
20.0 3 2022/9/26 上午11:40:02
程式語言 程式碼
Python '''
2_4.輸出語句-多列資料(20.0)
'''
print("1 1 1")
print("2 4 8")
print("3 9 27")
print("4 16 64")
print("5 25 125")
print("6 36 216")
print("7 49 343")
print("8 64 512")
print("9 81 729")
print("10 100 1000")
5. 身高體重
分數: 20.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
20.0 1 2022/9/26 上午11:34:32
程式語言 程式碼
Python '''
2_5.輸出語句-身高體重(20.0)
'''
print("Height: 158CM")
print("Weight: 55.66KG")
6. 彈:不換行
分數: 5.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
5.0 1 2022/9/26 上午11:35:40
程式語言 程式碼
Python '''
2_6.輸出語句-彈:不換行(5.0)
'''
print("Height: 158CM",end="")
print("Weight: 55.66KG")
7. 彈:中間有空格
分數: 5.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
5.0 1 2022/9/26 上午11:36:34
程式語言 程式碼
Python '''
2_7.輸出語句-彈:中間有空格(5.0)
'''
print("Height: 158CM",end="")
print(" ","Weight: 55.66KG")
8. 選擇題 (題目)
配分: 17.50 題型: 選擇-單選題
8. 選擇題 (答案)
最後一次判分時間: 2022/9/26 上午11:38:23 花費秒數: 0 判分次數: 8
# 得分 配分 你的答案 正確答案
0 2.5 2.5 C C
1 2.5 2.5 C C
2 2.5 2.5 C C
3 2.5 2.5 A A
4 2.5 2.5 A A
5 2.5 2.5 A A
6 2.5 2.5 C C
參考資料
[3]變數宣告與賦值
Page 22, 沈宏霖(30137)@科技應用專題三自
變數宣告與賦值(PDF) //www.18dice.tw/fs/materials/Python/111/A2-1變數宣告與賦值.pdf
UML符號圖(PDF) //www.18dice.tw/fs/materials/Python/111/A2-2UML活動圖符號.pdf
變數宣告與賦值(影音) https://www.youtube.com/embed/WKwYV-Siph8
總結
[3]變數宣告與賦值
Page 22, 沈宏霖(30137)@科技應用專題三自
# 名稱 配分 得分 次數 時間
1 溫度變數 10.0 10.0 1 2022/9/26 上午11:49:12
2 最後來的是主人 10.0 10.0 1 2022/9/26 上午11:49:33
3 印出2個指定整數 10.0 10.0 1 2022/9/26 上午11:49:49
4 加上形容詞-1 10.0 10.0 1 2022/9/26 上午11:50:39
5 加上形容詞-2 10.0 10.0 1 2022/9/26 上午11:53:35
6 浮點數溫度變數 10.0 10.0 1 2022/9/26 上午11:53:58
7 印出2個指定浮點數 10.0 10.0 1 2022/9/26 上午11:54:28
8 使用有序format輸出 15.0 15.0 2 2022/9/26 下午3:03:01
9 浮點數與形容詞 15.0 15.0 1 2022/9/26 下午3:04:20
10 自主學習 5.0 5.0 1 2022/12/16 下午9:12:31
11 選擇題 5.00 5.0 2 2022/9/26 下午3:04:53
110 110
1. 溫度變數
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 1 2022/9/26 上午11:49:12
程式語言 程式碼
Python '''
3_1.變數宣告與賦值-溫度變數(10.0)
'''
t=3
print(t)
2. 最後來的是主人
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 1 2022/9/26 上午11:49:33
程式語言 程式碼
Python '''
3_2.變數宣告與賦值-最後來的是主人(10.0)
'''
a=1
a=2
a=3
a=4
a=5
print(a)
3. 印出2個指定整數
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 1 2022/9/26 上午11:49:49
程式語言 程式碼
Python '''
3_3.變數宣告與賦值-印出2個指定整數(10.0)
'''
a=10
b=20
print(a,b)
4. 加上形容詞-1
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 1 2022/9/26 上午11:50:39
程式語言 程式碼
Python '''
3_4.變數宣告與賦值-加上形容詞-1(10.0)
'''
c=3
print("There are {0} cats.".format(c))
5. 加上形容詞-2
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 1 2022/9/26 上午11:53:35
程式語言 程式碼
Python a=3
b=4
print("There are {0} cats and".format(a),end="")
print(" {0} dogs.".format(b))
6. 浮點數溫度變數
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 1 2022/9/26 上午11:53:58
程式語言 程式碼
Python '''
3_6.變數宣告與賦值-浮點數溫度變數(10.0)
'''
t=33.33
print(t)
7. 印出2個指定浮點數
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 1 2022/9/26 上午11:54:28
程式語言 程式碼
Python '''
3_7.變數宣告與賦值-印出2個指定浮點數(10.0)
'''
a=3.333
b=4.4444
print(a)
print(b)
8. 使用有序format輸出
分數: 15.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
15.0 2 2022/9/26 下午3:03:01
程式語言 程式碼
Python '''
3_8.變數宣告與賦值-使用有序format輸出(15.0)
'''
a=11.1
b=22.22
c=33.333
print("{0} {1} {2}".format(a,b,c))
9. 浮點數與形容詞
分數: 15.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
15.0 1 2022/9/26 下午3:04:20
程式語言 程式碼
Python '''
3_9.變數宣告與賦值-浮點數與形容詞(15.0)
'''
a=3.333
b=4.4444
print("They are {0} and {1}.".format(a,b))
10. 自主學習
分數: 5.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
5.0 1 2022/12/16 下午9:12:31
程式語言 程式碼
Python '''
3_10.變數宣告與賦值-自主學習(5.0)
'''
a=1600
print(a)
print(bin(a))
print(oct(a))
print(hex(a))
11. 選擇題 (題目)
配分: 5.00 題型: 選擇-單選題
11. 選擇題 (答案)
最後一次判分時間: 2022/9/26 下午3:04:53 花費秒數: 0 判分次數: 2
# 得分 配分 你的答案 正確答案
0 2.5 2.5 A A
1 2.5 2.5 D D
參考資料
[4]浮點數與其輸出格式
Page 35, 沈宏霖(30137)@科技應用專題三自
資料型態(PDF) //www.18dice.tw/fs/materials/Python/111/A3-資料型態與浮點數.pdf
浮點數與其輸出格式(影音) https://www.youtube.com/embed/Q2MgeS7uKyo
總結
[4]浮點數與其輸出格式
Page 35, 沈宏霖(30137)@科技應用專題三自
# 名稱 配分 得分 次數 時間
1 資料型態 15.0 15.0 2 2022/9/26 下午3:07:12
2 印出浮點數-1 15.0 15.0 1 2022/9/26 下午3:08:33
3 印出浮點數-2 15.0 15.0 1 2022/9/26 下午6:27:33
4 印出浮點數-3 15.0 15.0 2 2022/9/26 下午6:34:52
5 印出浮點數-4 15.0 15.0 1 2022/9/26 下午6:49:44
6 固定格式 10.0 10.0 1 2022/9/26 下午6:53:30
7 浮點數轉整數 15.0 15.0 1 2022/9/26 下午6:55:10
9 選擇題 7.50 7.5 3 2022/9/26 下午6:56:00
112 107
1. 資料型態
分數: 15.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
15.0 2 2022/9/26 下午3:07:12
程式語言 程式碼
Python '''
4_1.浮點數與其輸出格式-資料型態(15.0)
'''
a=10
b=10.01
c=10+10j
text='DICE'
print(type(a))
print(type(b))
print(type(c))
print(type(text))
2. 印出浮點數-1
分數: 15.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
15.0 1 2022/9/26 下午3:08:33
程式語言 程式碼
Python '''
4_2.浮點數與其輸出格式-印出浮點數-1(15.0)
'''
a=10.1
b=5.2
print("num1={0}".format(a))
print("num2={0}".format(b))
3. 印出浮點數-2
分數: 15.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
15.0 1 2022/9/26 下午6:27:33
程式語言 程式碼
Python '''
4_3.浮點數與其輸出格式-印出浮點數-2(15.0)
'''
a=10.100000
b=5.200000
print("num1={0:f}".format(a))
print("num2={0:f}".format(b))
4. 印出浮點數-3
分數: 15.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
15.0 2 2022/9/26 下午6:34:52
程式語言 程式碼
Python '''
4_4.浮點數與其輸出格式-印出浮點數-3(15.0)
'''
a=10.10
b=5.200
print("num1={0:.2f}".format(a))
print("num2={0:.3f}".format(b))
5. 印出浮點數-4
分數: 15.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
15.0 1 2022/9/26 下午6:49:44
程式語言 程式碼
Python '''
4_5.浮點數與其輸出格式-印出浮點數-4(15.0)
'''
a=10.10
b=5.200
print("num1={0:.2f} num2={1:.3f}".format(a,b))
6. 固定格式
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 1 2022/9/26 下午6:53:30
程式語言 程式碼
Python '''
4_6.浮點數與其輸出格式-固定格式(10.0)
'''
a=160
print("My height is {0:10.2f} CM.".format(a))
b=55.22
print("My weight is {0:10.2f} KG.".format(b))
7. 浮點數轉整數
分數: 15.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
15.0 1 2022/9/26 下午6:55:10
程式語言 程式碼
Python '''
4_7.浮點數與其輸出格式-浮點數轉整數(15.0)
'''
a=3.14
b=int(a)
print("{0}".format(a))
print(b)
print(type(b))
9. 選擇題 (題目)
配分: 7.50 題型: 選擇-單選題
9. 選擇題 (答案)
最後一次判分時間: 2022/9/26 下午6:56:00 花費秒數: 0 判分次數: 3
# 得分 配分 你的答案 正確答案
0 2.5 2.5 D D
1 2.5 2.5 B B
2 2.5 2.5 C C
參考資料
[5]文字型態與輸出(彈)
Page 45, 沈宏霖(30137)@科技應用專題三自
文字型態與輸出(PDF) //www.18dice.tw/fs/materials/Python/111/A4-文字型態與輸出.pdf
文字處理與輸出(影音) https://www.youtube.com/embed/Vi0SylkaoRg
總結
[5]文字型態與輸出(彈)
Page 45, 沈宏霖(30137)@科技應用專題三自
# 名稱 配分 得分 次數 時間
1 字串 5.0 5.0 2 2022/9/26 下午7:03:45
2 從字串找字元 5.0 5.0 1 2022/9/26 下午7:05:42
3 從字串找單字 5.0 5.0 11 2022/11/21 下午9:31:08
4 分割字串 5.0 5.0 1 2022/9/26 下午7:23:27
5 數也是字 5.0 5.0 1 2022/9/26 下午7:26:12
6 倒著印字串 5.0 5.0 2 2022/9/26 下午7:17:38
7 選擇題 10.00 10.0 4 2022/9/26 下午7:18:39
40 40
1. 字串
分數: 5.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
5.0 2 2022/9/26 下午7:03:45
程式語言 程式碼
Python '''
5_1.文字型態與輸出(彈)-字串(5.0)
'''
a='Hello, Dice'
print(a)
2. 從字串找字元
分數: 5.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
5.0 1 2022/9/26 下午7:05:42
程式語言 程式碼
Python '''
5_2.文字型態與輸出(彈)-從字串找字元(5.0)
'''
a="Hello,Dice"
print(a[0])
print(a[1])
print(a[2])
print(a[3])
print(a[4])
3. 從字串找單字
分數: 5.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
5.0 11 2022/11/21 下午9:31:08
程式語言 程式碼
Python '''
5_3.文字型態與輸出(彈)-從字串找單字(5.0)
'''
a="Hello, Dice, "
print(a[0:5])
print(a[7:11])
4. 分割字串
分數: 5.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
5.0 1 2022/9/26 下午7:23:27
程式語言 程式碼
Python '''
5_4.文字型態與輸出(彈)-分割字串(5.0)
'''
text="I love you"
texttall=text.split(" ")
text0= text.split(" ")[0]
text1=text.split(" ")[1]
text2=text.split(" ")[2]
print(texttall)
print(text0)
print(text1)
print(text2)
5. 數也是字
分數: 5.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
5.0 1 2022/9/26 下午7:26:12
程式語言 程式碼
Python '''
5_5.文字型態與輸出(彈)-數也是字(5.0)
'''
a="06 6333333"
a1=a.split(" ")[0]
a2=a.split(" ")[1]
print(a1)
print(a2)
print(type(a1))
print(type(a2))
6. 倒著印字串
分數: 5.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
5.0 2 2022/9/26 下午7:17:38
程式語言 程式碼
Python '''
5_6.文字型態與輸出(彈)-倒著印字串(5.0)
'''
a="Hello, Dice"
print(a[::-1])
7. 選擇題 (題目)
配分: 10.00 題型: 選擇-單選題
7. 選擇題 (答案)
最後一次判分時間: 2022/9/26 下午7:18:39 花費秒數: 0 判分次數: 4
# 得分 配分 你的答案 正確答案
0 2.5 2.5 A A
1 2.5 2.5 D D
2 2.5 2.5 A A
3 2.5 2.5 B B
參考資料
[6]輸入語句
Page 54, 沈宏霖(30137)@科技應用專題三自
輸入語句(PDF) //www.18dice.tw/fs/materials/Python/111/A5-輸入語句.pdf
輸入語句(影音) https://www.youtube.com/embed/yIbz_a6Vu_c
總結
[6]輸入語句
Page 54, 沈宏霖(30137)@科技應用專題三自
# 名稱 配分 得分 次數 時間
1 輸入1筆資料 20.0 20.0 1 2022/9/26 下午7:31:28
2 輸入2筆資料 20.0 20.0 1 2022/9/26 下午7:32:21
3 正序 20.0 20.0 1 2022/9/26 下午7:33:30
4 倒序 20.0 20.0 1 2022/9/26 下午7:34:03
5 長方形 10.0 10.0 1 2022/9/26 下午7:34:33
6 浮點數輸出入 10.0 10.0 1 2022/9/26 下午7:36:22
7 字串 5.0 5.0 1 2022/9/26 下午7:37:33
8 轉型 5.0 5.0 1 2022/9/26 下午7:44:30
9 彈:再玩長方形 5.0 5.0 1 2022/9/26 下午7:47:17
120 115
1. 輸入1筆資料
分數: 20.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
20.0 1 2022/9/26 下午7:31:28
程式語言 程式碼
Python '''
6_1.輸入語句-輸入1筆資料(20.0)
'''
a=input()
print(a)
2. 輸入2筆資料
分數: 20.0 程式語言: {}
你的答案:
分數 判分次數 最後一次判分時間
20.0 1 2022/9/26 下午7:32:21
程式語言 程式碼
Python '''
6_2.輸入語句-輸入2筆資料(20.0)
'''
a=input()
b=input()
print(a)
print("{0}".format(b))
3. 正序
分數: 20.0 程式語言: {}
你的答案:
分數 判分次數 最後一次判分時間
20.0 1 2022/9/26 下午7:33:30
程式語言 程式碼
Python '''
6_3.輸入語句-正序(20.0)
'''
a=input()
b=input()
print(a,b)
4. 倒序
分數: 20.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
20.0 1 2022/9/26 下午7:34:03
程式語言 程式碼
Python '''
6_4.輸入語句-倒序(20.0)
'''
a=input()
b=input()
print(b)
print(a)
5. 長方形
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 1 2022/9/26 下午7:34:33
程式語言 程式碼
Python '''
6_5.輸入語句-長方形(10.0)
'''
a=input()
b=input()
print(a,b,a,b)
6. 浮點數輸出入
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 1 2022/9/26 下午7:36:22
程式語言 程式碼
Python '''
6_6.輸入語句-浮點數輸出入(10.0)
'''
a=input()
b=input()
c=input()
print("{0}n{1}n{2}".format(a,b,c))
7. 字串
分數: 5.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
5.0 1 2022/9/26 下午7:37:33
程式語言 程式碼
Python '''
6_7.輸入語句-字串(5.0)
'''
a=input()
b=input()
c=input()
print(a)
print("{0}".format(b))
print(c)
8. 轉型
分數: 5.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
5.0 1 2022/9/26 下午7:44:30
程式語言 程式碼
Python '''
6_8.輸入語句-轉型(5.0)
'''
a=int(input())
b=float(input())
print(a)
print(b)
print(type(a))
print(type(b))
9. 彈:再玩長方形
分數: 5.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
5.0 1 2022/9/26 下午7:47:17
程式語言 程式碼
Python '''
6_9.輸入語句-彈:再玩長方形(5.0)
'''
a=input()
l=int(a.split(" ")[0])
w=int(a.split(" ")[1])
print(l,w,l,w)
參考資料
[7]加法與轉型
Page 64, 沈宏霖(30137)@科技應用專題三自
加法與轉型(PDF) //www.18dice.tw/fs/materials/Python/111/A6-加法與轉型.pdf
加法與轉型(影音) https://www.youtube.com/embed/4Bw42r-UnZY
總結
[7]加法與轉型
Page 64, 沈宏霖(30137)@科技應用專題三自
# 名稱 配分 得分 次數 時間
1 文字相加 20.0 20.0 1 2022/9/26 下午7:50:09
2 整數相加 20.0 20.0 1 2022/9/26 下午9:38:17
3 =不是等號 20.0 20.0 1 2022/9/26 下午9:39:24
4 文字相加 20.0 20.0 1 2022/9/26 下午9:40:01
5 浮點數相加 20.0 20.0 1 2022/9/26 下午9:40:49
6 彈:加法再現 5.0 5.0 6 2022/10/24 上午10:34:16
7 自主學習 5.0 5.0 4 2022/10/24 上午10:23:05
8 選擇題 10.00 10.0 4 2022/9/26 下午9:59:50
120 120
1. 文字相加
分數: 20.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
20.0 1 2022/9/26 下午7:50:09
程式語言 程式碼
Python '''
7_1.加法與轉型-文字相加(20.0)
'''
a=input()
b=input()
c=a+b
print("{0}+{1}={2}".format(a,b,c))
2. 整數相加
分數: 20.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
20.0 1 2022/9/26 下午9:38:17
程式語言 程式碼
Python '''
7_2.加法與轉型-整數相加(20.0)
'''
a=int(input())
b=int(input())
c=a+b
print("{0}+{1}={2}".format(a,b,c))
3. =不是等號
分數: 20.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
20.0 1 2022/9/26 下午9:39:24
程式語言 程式碼
Python '''
7_3.加法與轉型-=不是等號(20.0)
'''
a=int(input())
a=a+10
print("a變為{0}".format(a))
4. 文字相加
分數: 20.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
20.0 1 2022/9/26 下午9:40:01
程式語言 程式碼
Python '''
7_4.加法與轉型-文字相加(20.0)
'''
a=input()
b=input()
print(a+b)
5. 浮點數相加
分數: 20.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
20.0 1 2022/9/26 下午9:40:49
程式語言 程式碼
Python '''
7_5.加法與轉型-浮點數相加(20.0)
'''
a=float(input())
b=float(input())
print(a+b)
6. 彈:加法再現
分數: 5.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
5.0 6 2022/10/24 上午10:34:16
程式語言 程式碼
Python '''
7_6.加法與轉型-彈:加法再現(5.0)
'''
num=input()
a=int(num.split(" ")[0])
b=int(num.split(" ")[1])
num=a+b
print("{}+{}={}".format(a,b,num))
7. 自主學習
分數: 5.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
5.0 4 2022/10/24 上午10:23:05
程式語言 程式碼
Python '''
7_7.加法與轉型-自主學習(5.0)
'''
a=input()
b=a.lower()
print(b)
8. 選擇題 (題目)
配分: 10.00 題型: 選擇-單選題
8. 選擇題 (答案)
最後一次判分時間: 2022/9/26 下午9:59:50 花費秒數: 0 判分次數: 4
# 得分 配分 你的答案 正確答案
0 2.5 2.5 D D
1 2.5 2.5 C C
2 2.5 2.5 C C
3 2.5 2.5 A A
參考資料
[8]算術運算子
Page 74, 沈宏霖(30137)@科技應用專題三自
算術運算子(PDF) //www.18dice.tw/fs/materials/Python/111/A7-算術運算子.pdf
算術運算子(影音) https://www.youtube.com/embed/0vml4Er-e-Q
總結
[8]算術運算子
Page 74, 沈宏霖(30137)@科技應用專題三自
# 名稱 配分 得分 次數 時間
1 四則運算-1 15.0 15.0 2 2022/9/26 下午9:57:13
2 四則運算-2 15.0 15.0 1 2022/9/28 上午11:26:15
3 其他運算-1 10.0 10.0 4 2023/1/9 下午10:10:38
4 其他運算-2 10.0 10.0 3 2022/9/28 下午8:39:14
5 時間計算 10.0 10.0 1 2022/9/28 下午8:43:51
6 溫度換算 10.0 10.0 2 2022/9/30 下午5:20:51
7 3個溫度的換算 10.0 10.0 1 2022/9/30 下午5:24:58
8 圓周長與面積 10.0 10.0 2 2022/9/30 下午5:29:31
9 彈:薪水 10.0 10.0 2 2022/9/30 下午5:33:24
10 彈:年利率 5.0 0.0 5 2023/1/9 下午10:13:42
11 自主學習 5.0 5.0 2 2022/10/24 上午10:23:34
12 選擇題 12.50 12.5 2 2022/9/30 下午5:35:53
122 117
1. 四則運算-1
分數: 15.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
15.0 2 2022/9/26 下午9:57:13
程式語言 程式碼
Python '''
8_1.算術運算子-四則運算-1(15.0)
'''
x=int(input())
y=int(input())
x1=x+5
y=y-x1
a=x1*y
b=x1/y
print(x1,y,a,b)
2. 四則運算-2
分數: 15.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
15.0 1 2022/9/28 上午11:26:15
程式語言 程式碼
Python '''
8_2.算術運算子-四則運算-2(15.0)
'''
a=int(input())
b=int(input())
print("{0}+{1}={2}".format(a,b,a+b))
print("{0}-{1}={2}".format(a,b,a-b))
print("{0}*{1}={2}".format(a,b,a*b))
print("{0}/{1}={2}".format(a,b,a/b))
3. 其他運算-1
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 4 2023/1/9 下午10:10:38
程式語言 程式碼
Python '''
8_3.算術運算子-其他運算-1(10.0)
'''
import math
a=int(input())
b=int(input())
print("{0}".format(a//b))
print("{0}".format(a%b))
print("{0}".format(a**b))
print(math.sqrt(a*a+b*b))
4. 其他運算-2
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 3 2022/9/28 下午8:39:14
程式語言 程式碼
Python '''
8_4.算術運算子-其他運算-2(10.0)
'''
a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=(a-b)/(c+d)
print("{0}".format(e))
5. 時間計算
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 1 2022/9/28 下午8:43:51
程式語言 程式碼
Python '''
8_5.算術運算子-時間計算(10.0)
'''
a=int(input())
b=a*75
c=b//60
d=b%60
print("{0}個粽子共需要{1}分{2}秒".format(a,c,d))
6. 溫度換算
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 2 2022/9/30 下午5:20:51
程式語言 程式碼
Python '''
8_6.算術運算子-溫度換算(10.0)
'''
a=float(input())
print("華氏溫度為{0}".format(((9/5)*a)+32))
7. 3個溫度的換算
分數: 10.0 程式語言: {}
你的答案:
分數 判分次數 最後一次判分時間
10.0 1 2022/9/30 下午5:24:58
程式語言 程式碼
Python '''
8_7.算術運算子-3個溫度的換算(10.0)
'''
a=float(input())
b=float(input())
c=float(input())
print("1.華氏溫度為{0}".format(((9/5)*a)+32))
print("2.華氏溫度為{0}".format(((9/5)*b)+32))
print("3.華氏溫度為{0}".format(((9/5)*c)+32))
8. 圓周長與面積
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 2 2022/9/30 下午5:29:31
程式語言 程式碼
Python '''
8_8.算術運算子-圓周長與面積(10.0)
'''
r=float(input())
a=float(input())
r2=r*2*3.14
R=r*r*3.14
ar=R*(a/360)
print("圓周長為{0:.2f}".format(r2))
print("圓面積為{0:.2f}".format(R))
print("扇形面積為{0:.2f}".format(ar))
9. 彈:薪水
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 2 2022/9/30 下午5:33:24
程式語言 程式碼
Python '''
8_9.算術運算子-彈:薪水(10.0)
'''
a1=float(input())
a2=float(input())
a3=float(input())
print("週薪US{0:.2f}元".format(a1*0.09+200))
print("週薪US{0:.2f}元".format(a2*0.09+200))
print("週薪US{0:.2f}元".format(a3*0.09+200))
10. 彈:年利率
分數: 5.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
0.0 5 2023/1/9 下午10:13:42
程式語言 程式碼
Python '''
8_10.算術運算子-彈:年利率(5.0)
'''
for i in range(1,3,1):
a=int(input())
b=float(input())
c=int(input())
print("{0:.2f}".format(a*b*c/365))
11. 自主學習
分數: 5.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
5.0 2 2022/10/24 上午10:23:34
程式語言 程式碼
Python '''
8_11.算術運算子-自主學習(5.0)
'''
a=input()
b=a.upper()
print(b)
12. 選擇題 (題目)
配分: 12.50 題型: 選擇-單選題
12. 選擇題 (答案)
最後一次判分時間: 2022/9/30 下午5:35:53 花費秒數: 0 判分次數: 2
# 得分 配分 你的答案 正確答案
0 2.5 2.5 A A
1 2.5 2.5 A A
2 2.5 2.5 D D
3 2.5 2.5 B B
4 2.5 2.5 A A
參考資料
[9]關係與邏輯運算子
Page 88, 沈宏霖(30137)@科技應用專題三自
比較-真假(PDF) //www.18dice.tw/fs/materials/Python/111/A8-比較-真假.pdf
關係與邏輯運算子(影音) https://www.youtube.com/embed/XnJFPukORXA
總結
[9]關係與邏輯運算子
Page 88, 沈宏霖(30137)@科技應用專題三自
# 名稱 配分 得分 次數 時間
1 數值比較 10.0 10.0 1 2022/10/17 上午10:58:05
2 字元比較 10.0 10.0 2 2022/10/17 上午11:00:43
3 同齡好友 10.0 10.0 1 2022/10/17 上午11:01:47
4 忘年之交 10.0 10.0 3 2022/10/17 上午11:14:54
5 邏輯比較 10.0 10.0 1 2022/10/18 下午7:36:32
6 今天要上課 10.0 10.0 1 2022/10/18 下午7:38:21
7 兒童老人免門票 20.0 20.0 1 2022/10/18 下午7:42:10
8 BMI標準嗎 20.0 20.0 1 2022/10/18 下午7:47:26
9 自主學習 5.0 5.0 1 2022/10/18 下午7:51:43
10 選擇題 15.00 15.0 7 2022/10/18 下午7:53:33
120 120
1. 數值比較
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 1 2022/10/17 上午10:58:05
程式語言 程式碼
Python '''
9_1.關係與邏輯運算子-數值比較(10.0)
'''
print(3<5)
print(3>5)
print(3!=5)
print(3==3)
2. 字元比較
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 2 2022/10/17 上午11:00:43
程式語言 程式碼
Python '''
9_2.關係與邏輯運算子-字元比較(10.0)
'''
print("abc"=="abcd")
print("abcd"=="abcd")
print("abc">"abd")
print("abc"<"abd")
print("23"<"3")
print("abc"!="abc")
print("abc"!="ABC")
3. 同齡好友
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 1 2022/10/17 上午11:01:47
程式語言 程式碼
Python '''
9_3.關係與邏輯運算子-同齡好友(10.0)
'''
age1=int(input())
age2=int(input())
print(age1==age2)
4. 忘年之交
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 3 2022/10/17 上午11:14:54
程式語言 程式碼
Python '''
9_4.關係與邏輯運算子-忘年之交(10.0)
'''
age1=int(input())
age2=int(input())
print(age1!=age2)
5. 邏輯比較
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 1 2022/10/18 下午7:36:32
程式語言 程式碼
Python '''
9_5.關係與邏輯運算子-邏輯比較(10.0)
'''
print(3>5 and 5<10)
print(3<5 and 5<10)
print(3>5 and 5>10)
print(3>5 or 5<10)
print(3<5 or 5<10)
print(3>5 or 5>10)
print(not(3>5 and 5<10))
print(not(3<5 and 5<10))
print(not(3>5 and 5>10))
6. 今天要上課
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 1 2022/10/18 下午7:38:21
程式語言 程式碼
Python '''
9_6.關係與邏輯運算子-今天要上課(10.0)
'''
a=int(input())
print(a<=5)
7. 兒童老人免門票
分數: 20.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
20.0 1 2022/10/18 下午7:42:10
程式語言 程式碼
Python '''
9_7.關係與邏輯運算子-兒童老人免門票(20.0)
'''
a=int(input())
print(a<65 and a>12)
8. BMI標準嗎
分數: 20.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
20.0 1 2022/10/18 下午7:47:26
程式語言 程式碼
Python a=int(input())
b=float(input())
c=a/(b*b)
print("{}".format(c))
print(c>18.5 and c<24)
9. 自主學習
分數: 5.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
5.0 1 2022/10/18 下午7:51:43
程式語言 程式碼
Python '''
9_9.關係與邏輯運算子-自主學習(5.0)
'''
a=input()
print(a==a or a==e or a==o or a==i or a==u)
10. 選擇題 (題目)
配分: 15.00 題型: 選擇-單選題
10. 選擇題 (答案)
最後一次判分時間: 2022/10/18 下午7:53:33 花費秒數: 0 判分次數: 7
# 得分 配分 你的答案 正確答案
0 2.5 2.5 B B
1 2.5 2.5 C C
2 2.5 2.5 B B
3 2.5 2.5 A A
4 2.5 2.5 A A
5 2.5 2.5 B B
參考資料
[10]判斷式-if
Page 100, 沈宏霖(30137)@科技應用專題三自
判斷式-if(PDF) //www.18dice.tw/fs/materials/Python/111/B1-判斷式-if.pdf
判斷式-if(影音) https://www.youtube.com/embed/Kb4bx5nB46c
總結
[10]判斷式-if
Page 100, 沈宏霖(30137)@科技應用專題三自
# 名稱 配分 得分 次數 時間
1 及格 10.0 10.0 1 2022/10/18 下午7:56:53
2 選偶數 10.0 10.0 2 2022/10/18 下午8:00:22
3 發現不相等 10.0 10.0 1 2022/10/18 下午8:12:37
4 輸出絕對值 15.0 15.0 2 2022/10/18 下午8:18:46
5 正數區塊 15.0 15.0 1 2022/10/18 下午8:45:26
6 門票問題 20.0 20.0 1 2022/10/18 下午8:49:36
7 今天要上課 20.0 20.0 1 2022/10/18 下午8:51:50
8 自主學習 5.0 5.0 5 2022/11/7 上午10:46:42
9 選擇題 7.50 7.5 3 2022/10/20 下午7:42:22
112 112
1. 及格
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 1 2022/10/18 下午7:56:53
程式語言 程式碼
Python '''
10_1.判斷式-if-及格(10.0)
'''
a=int(input())
if a>=60:
print("{0}分及格".format(a))
2. 選偶數
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 2 2022/10/18 下午8:00:22
程式語言 程式碼
Python '''
10_2.判斷式-if-選偶數(10.0)
'''
a=int(input())
if a%2==0:
print("{0}是偶數".format(a))
a=int(input())
if a%2==0:
print("{0}是偶數".format(a))
3. 發現不相等
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 1 2022/10/18 下午8:12:37
程式語言 程式碼
Python '''
10_3.判斷式-if-發現不相等(10.0)
'''
a=int(input())
b=int(input())
if a!=b:
print("{0}!={1}".format(a,b))
a=int(input())
b=int(input())
if a!=b:
print("{0}!={1}".format(a,b))
4. 輸出絕對值
分數: 15.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
15.0 2 2022/10/18 下午8:18:46
程式語言 程式碼
Python '''
10_4.判斷式-if-輸出絕對值(15.0)
'''
a=int(input())
if a<0:
print("{0}".format(a*-1))
if a>0:
print("{0}".format(a))
a=int(input())
if a<0:
print("{0}".format(a*-1))
if a>0:
print("{0}".format(a))
5. 正數區塊
分數: 15.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
15.0 1 2022/10/18 下午8:45:26
程式語言 程式碼
Python '''
10_5.判斷式-if-正數區塊(15.0)
'''
a=int(input())
if a>0:
print("{}是正數".format(a))
print("正數區塊")
6. 門票問題
分數: 20.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
20.0 1 2022/10/18 下午8:49:36
程式語言 程式碼
Python '''
10_6.判斷式-if-門票問題(20.0)
'''
a=int(input())
if (a<65 and a>12):
print("{}歲要門票".format(a))
7. 今天要上課
分數: 20.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
20.0 1 2022/10/18 下午8:51:50
程式語言 程式碼
Python '''
10_7.判斷式-if-今天要上課(20.0)
'''
a=int(input())
if a<=5:
print("{}要上課".format(a))
a=int(input())
if a<=5:
print("{}要上課".format(a))
8. 自主學習
分數: 5.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
5.0 5 2022/11/7 上午10:46:42
程式語言 程式碼
Python '''
10_8.判斷式-if-自主學習(5.0)
'''
a=int(input())
b=float(input())
c=float(input())
d=float(input())
e=float(input())
if(((b+c)-d)>e):
print("帳號: {}".format(a))
print("信用額度: {0:.2f}".format(e))
print("新的餘額: {}".format((b+c)-d))
print("超出信用額度")
if(((b+c)-d)<e):
print("帳號: {}".format(a))
print("信用額度: {0:.2f}".format(e))
print("新的餘額: {}".format((b+c)-d))
9. 選擇題 (題目)
配分: 7.50 題型: 選擇-單選題
9. 選擇題 (答案)
最後一次判分時間: 2022/10/20 下午7:42:22 花費秒數: 0 判分次數: 3
# 得分 配分 你的答案 正確答案
0 2.5 2.5 C C
1 2.5 2.5 B B
2 2.5 2.5 B B
參考資料
[12]判斷式-if else
Page 112, 沈宏霖(30137)@科技應用專題三自
判斷式:if else(PDF) //www.18dice.tw/fs/materials/Python/111/B3-判斷式ifelse.pdf
判斷式if else(影音) https://www.youtube.com/embed/ObUVyLQYs3U
總結
[12]判斷式-if else
Page 112, 沈宏霖(30137)@科技應用專題三自
# 名稱 配分 得分 次數 時間
1 是否及格 15.0 15.0 4 2022/10/20 下午9:41:56
2 是否能構成三角形? 15.0 15.0 2 2022/10/20 下午9:48:43
3 是否直角三角形? 15.0 15.0 2 2022/10/20 下午10:01:16
4 是否與7相關? 15.0 15.0 1 2022/10/21 下午6:42:41
5 拆解三位數 10.0 10.0 1 2022/10/21 下午8:27:26
6 是否為3的倍數 10.0 10.0 3 2022/11/14 上午10:59:59
7 是否為迴文 20.0 20.0 2 2022/11/21 下午9:36:20
8 選擇題 5.00 5.0 2 2022/11/21 下午9:27:53
105 105
1. 是否及格
分數: 15.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
15.0 4 2022/10/20 下午9:41:56
程式語言 程式碼
Python '''
12_1.判斷式-if else-是否及格(15.0)
'''
a=int(input())
if(a>=60):
print("{}分及格".format(a))
else:
print("{}分不及格".format(a))
a=int(input())
if(a>=60):
print("{}分及格".format(a))
else:
print("{}分不及格".format(a))
2. 是否能構成三角形?
分數: 15.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
15.0 2 2022/10/20 下午9:48:43
程式語言 程式碼
Python '''
12_2.判斷式-if else-是否能構成三角形?(15.0)
'''
a=int(input())
b=int(input())
c=int(input())
if (a==b and a==c):
print("{} {} {}可以構成三角形".format(a,b,c))
else:
print("{} {} {}不可以構成三角形".format(a,b,c))
a=int(input())
b=int(input())
c=int(input())
if (a==b and a==c):
print("{} {} {}可以構成三角形".format(a,b,c))
else:
print("{} {} {}不可以構成三角形".format(a,b,c))
3. 是否直角三角形?
分數: 15.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
15.0 2 2022/10/20 下午10:01:16
程式語言 程式碼
Python '''
12_3.判斷式-if else-是否直角三角形?(15.0)
'''
i=1
while (i<=2):
a=int(input())
b=int(input())
c=int(input())
if(a**2+b**2==c**2 or a**2==b**2+c**2 or b**2==a**2+c**2):
print("{} {} {}是直角三角形".format(a,b,c))
else:
print("{} {} {}不是直角三角形".format(a,b,c))
i=i+1
4. 是否與7相關?
分數: 15.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
15.0 1 2022/10/21 下午6:42:41
程式語言 程式碼
Python '''
12_4.判斷式-if else-是否與7相關?(15.0)
'''
i=1
while(i<=3):
a=int(input())
if(a%7==0 or a%10==7):
print("{}符合標準".format(a))
else:
print("{}不符合標準".format(a))
i=i+1
5. 拆解三位數
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 1 2022/10/21 下午8:27:26
程式語言 程式碼
Python '''
12_5.判斷式-if else-拆解三位數(10.0)
'''
a=int(input())
print("{}".format(a//100))
print("{}".format(a%100//10))
print("{}".format(a%10))
6. 是否為3的倍數
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 3 2022/11/14 上午10:59:59
程式語言 程式碼
Python '''
12_6.判斷式-if else-是否為3的倍數(10.0)
'''
a=int(input())
b=a//100
c=a%100//10
d=a%10
if(b%3!=0):
print("百位數{}不是3的倍數".format(b))
else:
print("百位數{}是3的倍數".format(b))
if(c%3!=0):
print("十位數{}不是3的倍數".format(c))
else:
print("十位數{}是3的倍數".format(c))
if(d%3!=0):
print("個位數{}不是3的倍數".format(d))
else:
print("個位數{}是3的倍數".format(d))
7. 是否為迴文
分數: 20.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
20.0 2 2022/11/21 下午9:36:20
程式語言 程式碼
Python '''
12_7.判斷式-if else-是否為迴文(20.0)
'''
a=input()
if(a[0]==a[4] and a[1]==a[3]):
print("{}是迴文".format(a))
else:
print("{}不是迴文".format(a))
8. 選擇題 (題目)
配分: 5.00 題型: 選擇-單選題
8. 選擇題 (答案)
最後一次判分時間: 2022/11/21 下午9:27:53 花費秒數: 18 判分次數: 2
# 得分 配分 你的答案 正確答案
0 2.5 2.5 C C
1 2.5 2.5 B B
參考資料
[13]巢狀選擇
Page 122, 沈宏霖(30137)@科技應用專題三自
巢狀選擇(PDF) //www.18dice.tw/fs/materials/Python/111/B4-巢狀選擇.pdf
巢狀選擇(影音) https://www.youtube.com/embed/_WTynsheliU
總結
[13]巢狀選擇
Page 122, 沈宏霖(30137)@科技應用專題三自
# 名稱 配分 得分 次數 時間
1 分數等第 40.0 40.0 9 2022/10/20 下午10:33:28
2 正三角形嗎? 30.0 8.095238208770752 4 2022/11/7 上午11:54:34
4 選擇題 12.50 12.5 5 2022/11/21 下午9:29:23
112 60
1. 分數等第
分數: 40.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
40.0 9 2022/10/20 下午10:33:28
程式語言 程式碼
C++ #include <iostream>
using namespace std;
int main(){
int a,i=1;
while(i<=2){
cin>>a;
if(a>100){
cout<<"error data"<<endl;
}
else if(a>=90){
cout<<"Your score is "<<a<<" and degree is A!"<<endl;
}
else if(a>=80){
cout<<"Your score is "<<a<<" and degree is B!"<<endl;
}
else if(a>=70){
cout<<"Your score is "<<a<<" and degree is C!"<<endl;
}
else if(a>=60){
cout<<"Your score is "<<a<<" and degree is D!"<<endl;
}
else if(a>=0){
cout<<"Your score is "<<a<<" and degree is F!"<<endl;
}
else{
cout<<"error data"<<endl;
}
i++;
}
return 0;
}
Python '''
13_1.巢狀選擇-分數等第(40.0)
'''
i=1
while(i<=2):
a=int(input())
if a>100:
print("error data")
else:
if a>=90:
print("Your score is {0} and degree is A!".format(a))
else:
if a>=80:
print("Your score is {0} and degerr is B!".format(a))
else:
if a>=70:
print("Your score is {0} and degree is C!".format(a))
else:
if a>=60:
print("Your score is {0} and degree is D!".format(a))
else:
if a>=0:
print("Your score is {0} and degree is F!".format(a))
else:
print("error data")
i=i+1
2. 正三角形嗎?
分數: 30.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
8.095238208770752 4 2022/11/7 上午11:54:34
程式語言 程式碼
Python '''
13_2.巢狀選擇-正三角形嗎?(30.0)
'''
a=int(input())
b=int(input())
c=int(input())
if(a ==b and a==c):
print("{} {} {}正三角形".format(a,b,c))
else:
if(a*a+b*b==c*c or a*a+c*c==b*b or a*a==b*b+c*c):
print("{} {} {}非正三角形".format(a,b,c))
else :
print("{} {} {}無法構成三角形".format(a,b,c))
4. 選擇題 (題目)
配分: 12.50 題型: 選擇-單選題
4. 選擇題 (答案)
最後一次判分時間: 2022/11/21 下午9:29:23 花費秒數: 86 判分次數: 5
# 得分 配分 你的答案 正確答案
0 2.5 2.5 C C
1 2.5 2.5 D D
2 2.5 2.5 B B
3 2.5 2.5 A A
4 2.5 2.5 B B
5 - - - B
參考資料
[14]多選一
Page 129, 沈宏霖(30137)@科技應用專題三自
多選一(PDF) //www.18dice.tw/fs/materials/Python/111/B5-多選一.pdf
多選一(影音) https://www.youtube.com/embed/FFKl5IXCqDQ
總結
[14]多選一
Page 129, 沈宏霖(30137)@科技應用專題三自
# 名稱 配分 得分 次數 時間
1 點套餐 20.0 20.0 5 2022/11/7 上午10:55:26
2 分數分群 20.0 13.333333333333332 5 2022/11/14 上午11:00:10
3 猴子上學 20.0 20.0 1 2022/11/14 上午11:04:22
4 逛牛墟 20.0 20.0 5 2022/11/21 上午10:12:14
6 選擇題 5.00 5.0 2 2022/11/21 下午9:30:06
105 78
1. 點套餐
分數: 20.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
20.0 5 2022/11/7 上午10:55:26
程式語言 程式碼
Python '''
14_1.多選一-點套餐(20.0)
'''
i=1
while(i<=2):
a=input()
if (a=='A' or a=='a'):
print("牛奶")
print("西瓜")
print("檸檬水")
print("吐司")
i=i+1
elif (a=='B' or a=='b'):
print("西瓜")
print("檸檬水")
print("吐司")
i=i+1
elif (a=='C'or a=='c'):
print("檸檬水")
print("吐司")
i=i+1
elif (a=='D' or a=='d'):
print("吐司")
i=i+1
else :
print("超出範圍")
i=i+1
2. 分數分群
分數: 20.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
13.333333333333332 5 2022/11/14 上午11:00:10
程式語言 程式碼
Python '''
14_2.多選一-分數分群(20.0)
'''
i=1
while(i<=3):
a=int(input())
if(a>100 or a<0):
print("輸入錯誤")
i=i+1
elif(a % 10==1 or a % 10==2 or a % 10==3):
print("{}分A組".format(a))
i=i+1
elif(a%10==4 or a%10==5 or a%10==6):
print("{}分B組".format(a))
i=i+1
elif(a%10==7 or a%10==8 or a%10==9):
print("{}分C組".format(a))
i=i+1
else:
print("{}分他班幫忙".format(a))
i=i+1
3. 猴子上學
分數: 20.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
20.0 1 2022/11/14 上午11:04:22
程式語言 程式碼
Python '''
14_3.多選一-猴子上學(20.0)
'''
a=int(input())
if(a==11):
print("星期一猴子穿新衣")
elif(a==22):
print("星期二猴子肚子餓")
elif(a==33):
print("星期三猴子去爬山")
elif(a==44):
print("星期四猴子看電視")
elif(a==55):
print("星期五猴子去跳舞")
else:
print("我不知道")
4. 逛牛墟
分數: 20.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
20.0 5 2022/11/21 上午10:12:14
程式語言 程式碼
Python '''
14_4.多選一-逛牛墟(20.0)
'''
i=1
while(i<=4):
a=int(input())
if(a>=32):
print("{}日超出範圍".format(a))
i=i+1
elif(a%10==1 or a%10==4 or a%10==7):
print("{}日在鹽水".format(a))
i=i+1
elif(a%10==2 or a%10==5 or a%10==8):
print("{}日在善化".format(a))
i=i+1
elif(a%10==3 or a%10==6 or a%10==9):
print("{}日在北港".format(a))
i=i+1
elif(a%10==0):
print("{}日沒有".format(a))
i=i+1
6. 選擇題 (題目)
配分: 5.00 題型: 選擇-單選題
6. 選擇題 (答案)
最後一次判分時間: 2022/11/21 下午9:30:06 花費秒數: 39 判分次數: 2
# 得分 配分 你的答案 正確答案
0 2.5 2.5 D D
1 2.5 2.5 D D
參考資料
[15]重複-計數器控制
Page 138, 沈宏霖(30137)@科技應用專題三自
重複-計數器控制(PDF) //www.18dice.tw/fs/materials/Python/111/C1-重複-計數器控制.pdf
重複-計數器控制(影音) https://www.youtube.com/embed/GBov0U-UUfg
總結
[15]重複-計數器控制
Page 138, 沈宏霖(30137)@科技應用專題三自
# 名稱 配分 得分 次數 時間
1 10次判斷 20.0 20.0 8 2022/10/27 下午9:23:07
2 寫10次 20.0 20.0 1 2022/10/20 下午9:50:54
3 寫幾次 20.0 20.0 1 2022/10/20 下午9:54:06
4 輸入整數 20.0 20.0 1 2022/10/27 下午9:44:26
5 計算總和 10.0 10.0 4 2022/11/2 下午8:55:39
6 計算平均 10.0 10.0 1 2022/11/21 上午10:24:58
7 選擇題 15.00 15.0 2 2022/11/21 下午9:25:58
115 115
1. 10次判斷
分數: 20.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
20.0 8 2022/10/27 下午9:23:07
程式語言 程式碼
Python '''
15_1.重複-計數器控制-10次判斷(20.0)
'''
i=1
while i<=10:
a=int(input())
if(a>=60):
print("{}分及格".format(a))
else:
print("{}分不及格".format(a))
i=i+1
2. 寫10次
分數: 20.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
20.0 1 2022/10/20 下午9:50:54
程式語言 程式碼
Python i=1
while i<=10:
print("HaHaHa!")
i=i+1
3. 寫幾次
分數: 20.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
20.0 1 2022/10/20 下午9:54:06
程式語言 程式碼
Python '''
15_3.重複-計數器控制-寫幾次(20.0)
'''
i=1
a=int(input())
while (i<=a):
print("HaHaHa!")
i=i+1
4. 輸入整數
分數: 20.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
20.0 1 2022/10/27 下午9:44:26
程式語言 程式碼
Python '''
15_4.重複-計數器控制-輸入整數(20.0)
'''
a=int(input())
i=1
while i<=a:
b=int(input())
print("{}".format(b))
i=i+1;
5. 計算總和
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 4 2022/11/2 下午8:55:39
程式語言 程式碼
Python '''
15_5.重複-計數器控制-計算總和(10.0)
'''
i=1
c=0
a=int(input())
while (i<=a):
b=int(input())
c=c+b
i=i+1
print("{}".format(c))
6. 計算平均
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 1 2022/11/21 上午10:24:58
程式語言 程式碼
Python '''
15_6.重複-計數器控制-計算平均(10.0)
'''
s=0
i=1
a=int(input())
while(i<=a):
b=int(input())
s=s+b
i=i+1
print("{}".format(s/a))
7. 選擇題 (題目)
配分: 15.00 題型: 選擇-單選題
7. 選擇題 (答案)
最後一次判分時間: 2022/11/21 下午9:25:58 花費秒數: 60 判分次數: 2
# 得分 配分 你的答案 正確答案
0 2.5 2.5 C C
1 2.5 2.5 D D
2 2.5 2.5 D D
3 2.5 2.5 B B
4 2.5 2.5 A A
5 2.5 2.5 C C
參考資料
[16]重複-警示值控制
Page 147, 沈宏霖(30137)@科技應用專題三自
重複-警示值控制(PDF) //www.18dice.tw/fs/materials/Python/111/C2-重複-警示值控制.pdf
重複-警示值控制(影音) https://www.youtube.com/embed/9faum55PCTI
總結
[16]重複-警示值控制
Page 147, 沈宏霖(30137)@科技應用專題三自
# 名稱 配分 得分 次數 時間
1 寫到我說停 10.0 10.0 1 2022/10/27 下午9:59:42
2 計算幾次 10.0 10.0 1 2022/10/27 下午10:01:41
3 班級均分-直到我說停 10.0 10.0 1 2022/10/29 上午9:58:09
4 班級均分-到底迴圈幾次 10.0 10.0 2 2022/10/29 上午9:59:54
5 班級均分-總和 10.0 10.0 1 2022/11/21 上午10:34:52
6 班級均分-完成 10.0 10.0 3 2022/11/21 上午10:38:43
7 判斷直到負分 10.0 10.0 1 2022/11/21 上午10:41:10
8 相反數絕對值 10.0 10.0 2 2022/11/21 上午10:46:22
9 圓 10.0 10.0 2 2022/11/21 上午10:52:50
10 年利率 10.0 10.0 4 2022/11/21 上午11:44:05
11 選擇題 2.50 2.5 1 2022/11/21 下午9:24:41
102 102
1. 寫到我說停
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 1 2022/10/27 下午9:59:42
程式語言 程式碼
Python '''
16_1.重複-警示值控制-寫到我說停(10.0)
'''
i=int(input())
while(i!=-1):
print("HaHaHa!")
i=int(input())
2. 計算幾次
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 1 2022/10/27 下午10:01:41
程式語言 程式碼
Python '''
16_2.重複-警示值控制-計算幾次(10.0)
'''
a=0
i=int(input())
while(i!=-1):
print("HaHaHa!")
a=a+1
i=int(input())
print("{}".format(a))
3. 班級均分-直到我說停
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 1 2022/10/29 上午9:58:09
程式語言 程式碼
Python '''
16_3.重複-警示值控制-班級均分-直到我說停(10.0)
'''
i=int(input())
while(i!=-1):
print("{}".format(i))
i=int(input())
4. 班級均分-到底迴圈幾次
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 2 2022/10/29 上午9:59:54
程式語言 程式碼
Python '''
16_4.重複-警示值控制-班級均分-到底迴圈幾次(10.0)
'''
a=0
i=int(input())
while(i!=-1):
a=a+1
i=int(input())
print("{}".format(a))
5. 班級均分-總和
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 1 2022/11/21 上午10:34:52
程式語言 程式碼
Python '''
16_5.重複-警示值控制-班級均分-總和(10.0)
'''
p=int(input())
s=0
while(p!=-1):
s=s+p
p=int(input())
print("{}".format(s))
6. 班級均分-完成
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 3 2022/11/21 上午10:38:43
程式語言 程式碼
Python '''
16_6.重複-警示值控制-班級均分-完成(10.0)
'''
p=int(input())
s=0
i=0
while(p!=-1):
s=s+p
i=i+1
p=int(input())
print("{0:.2f}".format(s/i))
7. 判斷直到負分
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 1 2022/11/21 上午10:41:10
程式語言 程式碼
Python '''
16_7.重複-警示值控制-判斷直到負分(10.0)
'''
p=int(input())
while(p!=-1):
if(p>=60):
print("{}分及格".format(p))
p=int(input())
else:
print("{}分不及格".format(p))
p=int(input())
8. 相反數絕對值
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 2 2022/11/21 上午10:46:22
程式語言 程式碼
Python '''
16_8.重複-警示值控制-相反數絕對值(10.0)
'''
a=int(input())
while(a!=0):
if(a<0):
print("{0}的相反數{1}".format(a,a*-1))
print("{0}的絕對值{1}".format(a,a*-1))
a=int(input())
else:
print("{0}的相反數{1}".format(a,a*-1))
print("{0}的絕對值{0}".format(a))
a=int(input())
9. 圓
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 2 2022/11/21 上午10:52:50
程式語言 程式碼
Python '''
16_9.重複-警示值控制-圓(10.0)
'''
a=float(input())
while(a>0):
b=a/(2*3.14)
print("半徑{0:.2f}".format(b))
print("面積{0:.2f}".format(b*b*3.14))
a=float(input())
10. 年利率
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 4 2022/11/21 上午11:44:05
程式語言 程式碼
Python '''
16_10.重複-警示值控制-年利率(10.0)
'''
a=float(input())
b=float(input())
c=int(input())
while(a!=-1):
print("{0:.2f}".format(a*b*c/365))
a=float(input())
b=float(input())
c=int(input())
11. 選擇題 (題目)
配分: 2.50 題型: 選擇-單選題
11. 選擇題 (答案)
最後一次判分時間: 2022/11/21 下午9:24:41 花費秒數: 37 判分次數: 1
# 得分 配分 你的答案 正確答案
0 2.5 2.5 D D
1 - - - D
參考資料
[17]for
Page 160, 沈宏霖(30137)@科技應用專題三自
for(PDF) //www.18dice.tw/fs/materials/Python/111/C3-for.pdf
for(影音) https://www.youtube.com/embed/0Ezg-UpAUH4
總結
[17]for
Page 160, 沈宏霖(30137)@科技應用專題三自
# 名稱 配分 得分 次數 時間
1 1印到100 20.0 19.0 5 2022/11/25 下午9:43:15
2 1到100和 20.0 20.0 1 2022/11/21 上午11:46:51
3 奇數和 10.0 10.0 1 2022/11/21 上午11:47:55
4 偶數和 10.0 10.0 1 2022/11/21 上午11:48:52
5 1到N之和 10.0 10.0 1 2022/11/21 上午11:50:44
6 首末項 10.0 10.0 1 2022/12/5 上午10:43:14
7 等差級數 10.0 10.0 5 2022/11/25 下午9:41:47
8 10次判斷 10.0 10.0 2 2022/11/21 下午8:48:05
9 選擇題 7.50 7.5 2 2022/11/21 下午9:27:06
107 106
1. 1印到100
分數: 20.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
19.0 5 2022/11/25 下午9:43:15
程式語言 程式碼
Python '''
17_1.for-1印到100(20.0)
'''
for i in range(1,96,1):
print("{}".format(i))
2. 1到100和
分數: 20.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
20.0 1 2022/11/21 上午11:46:51
程式語言 程式碼
Python '''
17_2.for-1到100和(20.0)
'''
s=0
for i in range(1,100+1,1):
s=s+i
print("{}".format(s))
3. 奇數和
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 1 2022/11/21 上午11:47:55
程式語言 程式碼
Python '''
17_3.for-奇數和(10.0)
'''
s=0
for i in range(1,99+2,2):
s=s+i
print("{}".format(s))
4. 偶數和
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 1 2022/11/21 上午11:48:52
程式語言 程式碼
Python '''
17_4.for-偶數和(10.0)
'''
s=0
for i in range(2,100+2,2):
s=s+i
print("{}".format(s))
5. 1到N之和
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 1 2022/11/21 上午11:50:44
程式語言 程式碼
Python '''
17_5.for-1到N之和(10.0)
'''
s=0
a=int(input())
for i in range(1,a+1,1):
s=s+i
print("{}".format(s))
6. 首末項
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 1 2022/12/5 上午10:43:14
程式語言 程式碼
Python '''
17_6.for-首末項(10.0)
'''
s=0
a=int(input())
b=int(input())
for i in range(a,b+1,1):
s=s+i
print(s)
7. 等差級數
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 5 2022/11/25 下午9:41:47
程式語言 程式碼
Python '''
17_7.for-等差級數(10.0)
'''
s=0
a=int(input())
b=int(input())
c=int(input())
for i in range(a,b,c):
s=s+i
print("{}".format(s))
8. 10次判斷
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 2 2022/11/21 下午8:48:05
程式語言 程式碼
Python '''
17_8.for-10次判斷(10.0)
'''
for i in range(1,10+1,1):
a=int(input())
if(a>=60):
print("{}分及格".format(a))
else:
print("{}分不及格".format(a))
9. 選擇題 (題目)
配分: 7.50 題型: 選擇-單選題
9. 選擇題 (答案)
最後一次判分時間: 2022/11/21 下午9:27:06 花費秒數: 57 判分次數: 2
# 得分 配分 你的答案 正確答案
0 2.5 2.5 D D
1 2.5 2.5 B B
2 2.5 2.5 A A
參考資料
[20]自訂函式
Page 171, 沈宏霖(30137)@科技應用專題三自
自訂函式(PDF) //www.18dice.tw/fs/materials/Python/111/D1-自訂函式.pdf
函數呼叫(影音) https://www.youtube.com/embed/u9D8AKCJryI
總結
[20]自訂函式
Page 171, 沈宏霖(30137)@科技應用專題三自
# 名稱 配分 得分 次數 時間
1 相加 5.0 5.0 1 2022/12/5 上午10:45:16
2 Hello function 5.0 5.0 1 2022/12/5 上午10:45:58
3 Hello funtion 10次 5.0 5.0 1 2022/12/5 上午10:47:25
4 累加 5.0 5.0 1 2022/12/5 上午10:48:32
5 累加-梯形公式 5.0 5.0 1 2022/12/5 上午10:49:43
6 相加-累加 10.0 10.0 2 2022/12/5 上午10:52:25
7 圓柱體體積 10.0 10.0 2 2022/12/5 上午10:57:29
9 x的y次方 10.0 10.0 4 2022/12/13 下午8:03:30
10 無傳回值函數 10.0 2.916666348775228 7 2022/12/22 下午3:40:04
15 選擇題 7.50 7.5 2 2022/12/10 上午10:51:14
117 64
1. 相加
分數: 5.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
5.0 1 2022/12/5 上午10:45:16
程式語言 程式碼
Python '''
20_1.自訂函式-相加(5.0)
'''
def add(x,y):
sum=x+y
return sum
x=int(input())
y=int(input())
print(add(x,y))
2. Hello function
分數: 5.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
5.0 1 2022/12/5 上午10:45:58
程式語言 程式碼
Python '''
20_2.自訂函式-Hello function(5.0)
'''
def hello():
print("Hello function")
hello()
3. Hello funtion 10次
分數: 5.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
5.0 1 2022/12/5 上午10:47:25
程式語言 程式碼
Python '''
20_3.自訂函式-Hello funtion 10次(5.0)
'''
def hello():
print("Hello function")
a=int(input())
for i in range(1,a+1,1):
hello()
4. 累加
分數: 5.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
5.0 1 2022/12/5 上午10:48:32
程式語言 程式碼
Python '''
20_4.自訂函式-累加(5.0)
'''
def add():
sum=0
for i in range(1,101,1):
sum=sum+i
return sum
print(add())
5. 累加-梯形公式
分數: 5.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
5.0 1 2022/12/5 上午10:49:43
程式語言 程式碼
Python '''
20_5.自訂函式-累加-梯形公式(5.0)
'''
def add(x):
sum=int((1+x)*x/2)
return sum
x=int(input())
print(add(x))
6. 相加-累加
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 2 2022/12/5 上午10:52:25
程式語言 程式碼
Python '''
20_6.自訂函式-相加-累加(10.0)
'''
def add():
sum=0
for i in range(1,1+n,1):
sum=sum+i
return sum
n=int(input())
print(add())
7. 圓柱體體積
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 2 2022/12/5 上午10:57:29
程式語言 程式碼
Python '''
20_7.自訂函式-圓柱體體積(10.0)
'''
def area3(r,h):
area2=r*r*3.14
return area2*h
r=3
volume=area3(r,10)
print("半徑{}時的圓柱體體積: {}".format(r,volume))
r=3+2
volume=area3(r,10)
print("半徑{}時的圓柱體體積: {}".format(r,volume))
9. x的y次方
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 4 2022/12/13 下午8:03:30
程式語言 程式碼
Python '''
20_9.自訂函式-x的y次方(10.0)
'''
def madepow(x,y):
value =x
for i in range(1,y):
value=value*x
return value
x=int(input())
while (x!=0):
y=int(input())
print(madepow(x,y))
x=int(input())
10. 無傳回值函數
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
2.916666348775228 7 2022/12/22 下午3:40:04
程式語言 程式碼
Python '''
20_10.自訂函式-無傳回值函數(10.0)
'''
def crazy():
print("為什麼需要副程式, 方便我瘋狂列印。")
return crazy
s=int(input())
for i in range(1,s+1,1):
crazy()
15. 選擇題 (題目)
配分: 7.50 題型: 選擇-單選題
15. 選擇題 (答案)
最後一次判分時間: 2022/12/10 上午10:51:14 花費秒數: 91 判分次數: 2
# 得分 配分 你的答案 正確答案
0 2.5 2.5 A A
1 2.5 2.5 D D
2 2.5 2.5 C C
參考資料
[25]串列的一維陣列
Page 183, 沈宏霖(30137)@科技應用專題三自
串列的一維陣列(PDF) //www.18dice.tw/fs/materials/Python/111/E1-一維陣列.pdf
總結
[25]串列的一維陣列
Page 183, 沈宏霖(30137)@科技應用專題三自
# 名稱 配分 得分 次數 時間
1 印出動物元素 5.0 5.0 1 2022/12/13 下午7:31:39
2 動物串列 5.0 5.0 1 2022/12/13 下午7:34:10
3 食物元素 5.0 5.0 4 2023/1/9 下午10:12:54
4 食物列表 5.0 5.0 1 2022/12/13 下午7:39:38
5 交換資料 5.0 5.0 2 2022/12/13 下午7:53:06
6 統計資料 5.0 5.0 2 2022/12/13 下午7:47:07
7 人數判斷 5.0 5.0 1 2022/12/13 下午7:52:01
8 選擇題 5.00 5.0 2 2022/12/13 下午7:52:19
40 40
1. 印出動物元素
分數: 5.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
5.0 1 2022/12/13 下午7:31:39
程式語言 程式碼
Python '''
25_1.串列的一維陣列-印出動物元素(5.0)
'''
a=['長頸鹿','獅子','豹','鹿','熊','兔子','斑馬']
print(a)
print(a[0])
print(a[1])
2. 動物串列
分數: 5.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
5.0 1 2022/12/13 下午7:34:10
程式語言 程式碼
Python '''
25_2.串列的一維陣列-動物串列(5.0)
'''
a=['長頸鹿','獅子','豹','鹿','熊','兔子','斑馬']
for i in range(0,7,1):
print(a[i])
3. 食物元素
分數: 5.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
5.0 4 2023/1/9 下午10:12:54
程式語言 程式碼
Python '''
25_3.串列的一維陣列-食物元素(5.0)
'''
a=[90,91,92,93]
print(a)
print(a[0])
a[0]=95
print(a[0])
4. 食物列表
分數: 5.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
5.0 1 2022/12/13 下午7:39:38
程式語言 程式碼
Python '''
25_4.串列的一維陣列-食物列表(5.0)
'''
a=[90,91,92,93]
for i in range(0,4,1):
print(a[i])
5. 交換資料
分數: 5.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
5.0 2 2022/12/13 下午7:53:06
程式語言 程式碼
Python '''
25_5.串列的一維陣列-交換資料(5.0)
'''
a=[70,10,14,7,25,30,50]
print(a)
b=[70,14,10,7,25,30,50]
print(b)
6. 統計資料
分數: 5.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
5.0 2 2022/12/13 下午7:47:07
程式語言 程式碼
Python '''
25_6.串列的一維陣列-統計資料(5.0)
'''
a=[70,14,10,7,25,30,50]
print("星期日: {}人".format(a[0]))
print("星期一: {}人".format(a[1]))
print("星期二: {}人".format(a[2]))
print("星期三: {}人".format(a[3]))
print("星期四: {}人".format(a[4]))
print("星期五: {}人".format(a[5]))
print("星期六: {}人".format(a[6]))
s=0
for i in range(0,7,1):
s=s+a[i]
print("總人數{}人".format(s))
7. 人數判斷
分數: 5.0 程式語言: {}
你的答案:
分數 判分次數 最後一次判分時間
5.0 1 2022/12/13 下午7:52:01
程式語言 程式碼
Python '''
25_7.串列的一維陣列-人數判斷(5.0)
'''
day=['日','一','二','三','四','五','六']
people=[70,14,10,7,25,30,50]
for i in range(0,7,1):
if(people[i]>=50):
print("星期{} 人數爆棚!".format(day[i]))
else:
print("星期{} 需要繼續加油...".format(day[i]))
8. 選擇題 (題目)
配分: 5.00 題型: 選擇-單選題
8. 選擇題 (答案)
最後一次判分時間: 2022/12/13 下午7:52:19 花費秒數: 16 判分次數: 2
# 得分 配分 你的答案 正確答案
0 2.5 2.5 B B
1 2.5 2.5 A A
參考資料
[27]串列的建立
Page 193, 沈宏霖(30137)@科技應用專題三自
串列的概念(PDF) //www.18dice.tw/fs/materials/Python/111/F1-1串列的建立.pdf
串列的概念(影音) https://www.youtube.com/embed/cjKiOSnwSRc
總結
[27]串列的建立
Page 193, 沈宏霖(30137)@科技應用專題三自
# 名稱 配分 得分 次數 時間
1 串列的類型 10.0 9.75 7 2022/12/16 下午9:19:58
2 不同資料型態的串列 10.0 10.0 1 2022/12/16 下午9:25:40
3 串列的存取 10.0 10.0 1 2022/12/16 下午9:27:18
4 修改元素 10.0 3.5294117647058827 4 2022/12/16 下午9:36:35
8 隔號輸出 10.0 10.0 1 2022/12/16 下午9:41:55
11 選擇題 5.00 5.0 2 2023/1/9 下午10:12:03
105 47
1. 串列的類型
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
9.75 7 2022/12/16 下午9:19:58
程式語言 程式碼
Python '''
27_1.串列的建立-串列的類型(10.0)
'''
a1=[10,20,30,40]
a2=['雞','鴨','鵝','鳥']
a3=['雞',20,True,2.5]
print(a1)
print(a2)
print(a3)
print(a3[1])
b3=['鴨',20,True,2.5]
print(b3)
2. 不同資料型態的串列
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 1 2022/12/16 下午9:25:40
程式語言 程式碼
Python '''
27_2.串列的建立-不同資料型態的串列(10.0)
'''
a=[]
a.append(input())
a.append(input())
a.append(input())
a.append(input())
a.append(input())
print(a)
print(a[0])
print(a[1])
print(a[2])
print(a[3])
print(a[4])
print(a[3])
3. 串列的存取
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 1 2022/12/16 下午9:27:18
程式語言 程式碼
Python '''
27_3.串列的建立-串列的存取(10.0)
'''
a=[]
for i in range(1,6+1,1):
a.append(input())
print(a)
for i in range(0,6,1):
print(a[i])
4. 修改元素
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
3.5294117647058827 4 2022/12/16 下午9:36:35
程式語言 程式碼
Python '''
27_4.串列的建立-修改元素(10.0)
'''
a=[]
for i in range(1,11,1):
a.append(input())
for i in range(1,10,2):
a[i]=a[i]+'*'
print(a[i])
print("n")
for i in range(0,10,1):
print(a[i])
8. 隔號輸出
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 1 2022/12/16 下午9:41:55
程式語言 程式碼
Python '''
27_8.串列的建立-隔號輸出(10.0)
'''
a=[]
for i in range(1,11,1):
a.append(input())
b=[]
for i in range(1,10,2):
b.append(a[i])
print(b)
11. 選擇題 (題目)
配分: 5.00 題型: 選擇-單選題
11. 選擇題 (答案)
最後一次判分時間: 2023/1/9 下午10:12:03 花費秒數: 32 判分次數: 2
# 得分 配分 你的答案 正確答案
0 2.5 2.5 B B
1 2.5 2.5 D D
參考資料
[28]串列的使用
Page 201, 沈宏霖(30137)@科技應用專題三自
串列的使用(PDF) //www.18dice.tw/fs/materials/Python/111/F1-2串列的使用.pdf
串列的使用(影音) https://www.youtube.com/embed/_U7HrgCuqAQ
總結
[28]串列的使用
Page 201, 沈宏霖(30137)@科技應用專題三自
# 名稱 配分 得分 次數 時間
1 購物篇 20.0 12.0 1 2023/1/9 下午10:04:46
2 食物整理篇 20.0 20.0 1 2023/1/9 下午10:07:28
105 32
1. 購物篇
分數: 20.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
12.0 1 2023/1/9 下午10:04:46
程式語言 程式碼
Python '''
28_1.串列的使用-購物篇(20.0)
'''
buy=['蘋果','香蕉','櫻桃']
buy[1]='草莓'
buy.append('橘子')
print('香蕉'in buy)
print('草莓'in buy)
buy.insert(1,'芒果')
print(len(buy))
print(buy)
2. 食物整理篇
分數: 20.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
20.0 1 2023/1/9 下午10:07:28
程式語言 程式碼
Python '''
28_2.串列的使用-食物整理篇(20.0)
'''
buy=['蘋果','芒果','草莓','櫻桃','橘子']
print(buy.pop())
del buy[0]
print(buy[0])
buy.clear()
print(buy)
參考資料
[29]元組
Page 204, 沈宏霖(30137)@科技應用專題三自
元組(PDF) //www.18dice.tw/fs/materials/Python/111/F2-元組.pdf
元組(影音) https://www.youtube.com/embed/3wf_yskEx5s
總結
[29]元組
Page 204, 沈宏霖(30137)@科技應用專題三自
# 名稱 配分 得分 次數 時間
4 選擇題 5.00 5.0 2 2023/1/16 下午9:23:32
20 5
4. 選擇題 (題目)
配分: 5.00 題型: 選擇-單選題
4. 選擇題 (答案)
最後一次判分時間: 2023/1/16 下午9:23:32 花費秒數: 28 判分次數: 2
# 得分 配分 你的答案 正確答案
0 2.5 2.5 B B
1 2.5 2.5 B B
參考資料
[30]集合
Page 207, 沈宏霖(30137)@科技應用專題三自
集合(PDF) //www.18dice.tw/fs/materials/Python/111/F3-集合.pdf
集合(影音) https://www.youtube.com/embed/AkFDQkPvxtI
總結
[30]集合
Page 207, 沈宏霖(30137)@科技應用專題三自
# 名稱 配分 得分 次數 時間
1 創建 5.0 5.0 2 2023/1/9 上午11:43:17
2 走訪 5.0 1.6666666666666665 1 2023/1/9 上午11:43:40
10 選擇題 7.50 7.5 2 2023/1/16 下午9:23:56
117 13
1. 創建
分數: 5.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
5.0 2 2023/1/9 上午11:43:17
程式語言 程式碼
Python '''
30_1.集合-創建(5.0)
'''
set1=set()
print(set1)
set2={1,2,3,4,5}
print(set2)
set3=set([i for i in range(20,30)])
print(set3)
set4=set((10,20,30,40,50))
print(set4)
2. 走訪
分數: 5.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
1.6666666666666665 1 2023/1/9 上午11:43:40
程式語言 程式碼
Python '''
30_2.集合-走訪(5.0)
'''
set1={1,2,3,4,5,2022}
print(set1)
10. 選擇題 (題目)
配分: 7.50 題型: 選擇-單選題
10. 選擇題 (答案)
最後一次判分時間: 2023/1/16 下午9:23:56 花費秒數: 16 判分次數: 2
# 得分 配分 你的答案 正確答案
0 2.5 2.5 C C
1 2.5 2.5 A A
2 2.5 2.5 D D
參考資料
[31]字典
Page 212, 沈宏霖(30137)@科技應用專題三自
字典(PDF) //www.18dice.tw/fs/materials/Python/111/F4-字典.pdf
字典(影音) https://www.youtube.com/embed/uBQS6v-_Umo
總結
[31]字典
Page 212, 沈宏霖(30137)@科技應用專題三自
# 名稱 配分 得分 次數 時間
1 水果字典 10.0 10.0 2 2023/1/16 下午9:52:36
2 玩玩水果字典 10.0 0.5027855932712555 1 2023/1/16 下午10:00:04
102 10
1. 水果字典
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 2 2023/1/16 下午9:52:36
程式語言 程式碼
Python '''
31_1.字典-水果字典(10.0)
'''
a={
"apple":"蘋果",
"orange":"橘子",
"mango":"橘子"
}
a["mango"]="芒果"
a["banana"]="香蕉"
print(a)
print(a.keys())
print(a.values())
print(a.get("mango"))
print(a.items())
print('apple'in a)
a2=a.copy()
print(a2)
2. 玩玩水果字典
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
0.5027855932712555 1 2023/1/16 下午10:00:04
程式語言 程式碼
Python '''
31_2.字典-玩玩水果字典(10.0)
'''
a={
"apple":"蘋果",
"orange":"橘子",
"mango":"橘子"
}
a["mango"]="芒果"
a["banana"]="香蕉"
print("1.字典{}有{}筆".format(a,len(a)))
a.pop("apple")
print("2.字典{}有{}筆".format(a,len(a)))
b=a.popitem()
print("從字典拿出{}".format(b))
print("3.字典{0}有{1}筆".format(a,len(a)))
del a["orange"]
print("4.字典{}有{}筆".format(a,len(a)))
a.clear()
print("5.字典{a}有{cnt}筆".format(a=a,cnt=len(a)))
1. 11172
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
0.0 1 2023/1/16 下午9:43:24
程式語言 程式碼
Python '''
34_1.UVa-1-11172(10.0)
'''
count=int(input())
a=int(input())
b=int(input())
for i in range(1,count+1,1):
if(a%b==0):
print("=")
a=int(input())
b=int(input())
elif(a%b!=0 and a>b):
print(">")
a=int(input())
b=int(input())
elif(a%b!=0 and a<b):
print("<")
a=int(input())
b=int(input())
參考資料
[36]附錄A1-迴圈多多練習
Page 219, 沈宏霖(30137)@科技應用專題三自
- -
總結
[36]附錄A1-迴圈多多練習
Page 219, 沈宏霖(30137)@科技應用專題三自
# 名稱 配分 得分 次數 時間
2 草履蟲分裂 10.0 10.0 1 2023/1/16 下午9:28:10
3 彈珠分裝 10.0 8.75 4 2023/1/16 下午9:32:12
6 平年閏年 10.0 10.0 1 2023/1/16 下午9:39:14
100 28
2. 草履蟲分裂
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 1 2023/1/16 下午9:28:10
程式語言 程式碼
Python '''
36_2.附錄A1-迴圈多多練習-草履蟲分裂(10.0)
'''
a=int(input())
while(a!=-1):
n=1
for i in range(1,a+1,1):
n=n*2
print(n)
a=int(input())
3. 彈珠分裝
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
8.75 4 2023/1/16 下午9:32:12
程式語言 程式碼
Python '''
36_3.附錄A1-迴圈多多練習-彈珠分裝(10.0)
'''
a=int(input())
while(a>=0):
if(a%8==0):
print("{}可分裝完畢".format(a))
a=int(input())
else:
print("{}不可分裝完畢".format(a))
a=int(input())
6. 平年閏年
分數: 10.0 程式語言: c
你的答案:
分數 判分次數 最後一次判分時間
10.0 1 2023/1/16 下午9:39:14
程式語言 程式碼
Python '''
36_6.附錄A1-迴圈多多練習-平年閏年(10.0)
'''
year=int(input())
while(year!=0):
if(year%4!=0):
print("平年")
year=int(input())
elif(year%4==0 and year%100!=0):
print("閏年")
year=int(input())
elif(year%100==0 and year%400!=0):
print("平年")
year=int(input())
elif(year%400==0):
print("閏年")
year=int(input())

More Related Content

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

3_30137.pdf

  • 1. 課程總結 學習目標 單元名稱(題數) 配分 得分 完成率 時間 公告 公告-範例(4) 80 80 100% 2022/10/16 公告總結 80 80 100% 2022/9/26 輸出語句 輸出語句(8) 127 127 100% 2022/9/26 輸出語句總結 127 127 100% 2022/12/16 變數宣告 變數宣告與賦值(11) 110 110 100% 2022/12/16 浮點數與其輸出格式(9) 112 107 95% 2022/9/26 文字型態與輸出(彈)(7) 40 40 100% 2022/11/21 變數宣告總結 262 257 98% 2022/11/21 輸入語句 輸入語句(10) 120 115 95% 2022/9/26 輸入語句總結 120 115 95% 2022/10/24 運算 加法與轉型(8) 120 120 100% 2022/10/24 算術運算子(12) 122 117 95% 2023/1/9 關係與邏輯運算子(10) 120 120 100% 2022/10/18 運算總結 362 357 98% 2023/1/9 判斷結構 判斷式-if(9) 112 112 100% 2022/11/7 判斷式-if else(8) 105 105 100% 2022/11/21 巢狀選擇(4) 112 60 53% 2022/11/21 多選一(6) 105 78 74% 2022/11/21 判斷結構總結 435 356 81% 2022/11/21 重複結構 重複-計數器控制(7) 115 115 100% 2022/11/21 重複-警示值控制(11) 102 102 100% 2022/11/21 for(9) 107 106 99% 2022/12/5 重複結構總結 537 324 60% 2022/12/22 函式 自訂函式(15) 117 65 55% 2022/12/22 [科技應用專題三自], 30137 , 沈宏霖 Page 1, 沈宏霖(30137)@科技應用專題三自
  • 2. 學習目標 單元名稱(題數) 配分 得分 完成率 時間 函式總結 225 65 29% 1900/2/1 資料結構 串列的一維陣列(8) 40 40 100% 2023/1/9 串列的建立(11) 105 48 45% 2023/1/9 串列的使用(7) 105 32 30% 2023/1/9 元組(4) 20 5 25% 2023/1/16 集合(10) 117 14 12% 2023/1/16 字典(10) 102 10 10% 2023/1/16 資料結構總結 522 149 28% 2023/1/16 綜合應用 附錄A1-迴圈多多練習(9) 100 28 28% 2023/1/16 綜合應用總結 200 28 14% 1900/2/1 [科技應用專題三自], 30137 , 沈宏霖 Page 2, 沈宏霖(30137)@科技應用專題三自
  • 3. 參考資料 [1]公告-範例 Page 3, 沈宏霖(30137)@科技應用專題三自 - - 總結 [1]公告-範例 Page 3, 沈宏霖(30137)@科技應用專題三自 # 名稱 配分 得分 次數 時間 1 視訊會議 20.00 20.0 1 2022/10/16 上午9:46:51 2 Jamboard 20.00 20.0 1 2022/10/16 上午9:46:48 3 期初前測 20.00 20.0 1 2022/10/16 上午9:46:44 4 成績計算 20.00 20.0 1 2022/10/16 上午9:46:32 80 80
  • 4. 1. 視訊會議 (題目) 配分: 20.00 題型: 選擇-單選題
  • 5. 1. 視訊會議 (答案) 最後一次判分時間: 2022/10/16 上午9:46:51 花費秒數: 0 判分次數: 1 # 得分 配分 你的答案 正確答案 0 20 20 A A
  • 6. 2. Jamboard (題目) 配分: 20.00 題型: 選擇-單選題
  • 7. 2. Jamboard (答案) 最後一次判分時間: 2022/10/16 上午9:46:48 花費秒數: 0 判分次數: 1 # 得分 配分 你的答案 正確答案 0 20 20 A A
  • 8. 3. 期初前測 (題目) 配分: 20.00 題型: 選擇-單選題
  • 9. 3. 期初前測 (答案) 最後一次判分時間: 2022/10/16 上午9:46:44 花費秒數: 0 判分次數: 1 # 得分 配分 你的答案 正確答案 0 20 20 A A
  • 10. 4. 成績計算 (題目) 配分: 20.00 題型: 選擇-單選題
  • 11. 4. 成績計算 (答案) 最後一次判分時間: 2022/10/16 上午9:46:32 花費秒數: 0 判分次數: 1 # 得分 配分 你的答案 正確答案 0 20 20 A A
  • 12. 參考資料 [2]輸出語句 Page 12, 沈宏霖(30137)@科技應用專題三自 輸出語句(PDF) //www.18dice.tw/fs/materials/Python/111/A1-輸出語句.pdf 輸出語句(影音) https://www.youtube.com/embed/3Zc63TgHR7M 總結 [2]輸出語句 Page 12, 沈宏霖(30137)@科技應用專題三自 # 名稱 配分 得分 次數 時間 1 SayHello 20.0 20.0 2 2022/9/26 上午11:11:20 2 印三角形 20.0 20.0 1 2022/9/26 上午11:12:33 3 不是計算 20.0 20.0 1 2022/9/26 上午11:12:50 4 多列資料 20.0 20.0 3 2022/9/26 上午11:40:02 5 身高體重 20.0 20.0 1 2022/9/26 上午11:34:32 6 彈:不換行 5.0 5.0 1 2022/9/26 上午11:35:40 7 彈:中間有空格 5.0 5.0 1 2022/9/26 上午11:36:34 8 選擇題 17.50 17.5 8 2022/9/26 上午11:38:23 127 127
  • 13. 1. SayHello 分數: 20.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 20.0 2 2022/9/26 上午11:11:20 程式語言 程式碼 Python print("Hello, World!")
  • 14. 2. 印三角形 分數: 20.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 20.0 1 2022/9/26 上午11:12:33 程式語言 程式碼 Python ''' 2_2.輸出語句-印三角形(20.0) ''' print("*") print("**") print("***") print("****") print("*****") print("******")
  • 15. 3. 不是計算 分數: 20.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 20.0 1 2022/9/26 上午11:12:50 程式語言 程式碼 Python ''' 2_3.輸出語句-不是計算(20.0) ''' print("2-3=5")
  • 16. 4. 多列資料 分數: 20.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 20.0 3 2022/9/26 上午11:40:02 程式語言 程式碼 Python ''' 2_4.輸出語句-多列資料(20.0) ''' print("1 1 1") print("2 4 8") print("3 9 27") print("4 16 64") print("5 25 125") print("6 36 216") print("7 49 343") print("8 64 512") print("9 81 729") print("10 100 1000")
  • 17. 5. 身高體重 分數: 20.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 20.0 1 2022/9/26 上午11:34:32 程式語言 程式碼 Python ''' 2_5.輸出語句-身高體重(20.0) ''' print("Height: 158CM") print("Weight: 55.66KG")
  • 18. 6. 彈:不換行 分數: 5.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 5.0 1 2022/9/26 上午11:35:40 程式語言 程式碼 Python ''' 2_6.輸出語句-彈:不換行(5.0) ''' print("Height: 158CM",end="") print("Weight: 55.66KG")
  • 19. 7. 彈:中間有空格 分數: 5.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 5.0 1 2022/9/26 上午11:36:34 程式語言 程式碼 Python ''' 2_7.輸出語句-彈:中間有空格(5.0) ''' print("Height: 158CM",end="") print(" ","Weight: 55.66KG")
  • 20. 8. 選擇題 (題目) 配分: 17.50 題型: 選擇-單選題
  • 21. 8. 選擇題 (答案) 最後一次判分時間: 2022/9/26 上午11:38:23 花費秒數: 0 判分次數: 8 # 得分 配分 你的答案 正確答案 0 2.5 2.5 C C 1 2.5 2.5 C C 2 2.5 2.5 C C 3 2.5 2.5 A A 4 2.5 2.5 A A 5 2.5 2.5 A A 6 2.5 2.5 C C
  • 22. 參考資料 [3]變數宣告與賦值 Page 22, 沈宏霖(30137)@科技應用專題三自 變數宣告與賦值(PDF) //www.18dice.tw/fs/materials/Python/111/A2-1變數宣告與賦值.pdf UML符號圖(PDF) //www.18dice.tw/fs/materials/Python/111/A2-2UML活動圖符號.pdf 變數宣告與賦值(影音) https://www.youtube.com/embed/WKwYV-Siph8 總結 [3]變數宣告與賦值 Page 22, 沈宏霖(30137)@科技應用專題三自 # 名稱 配分 得分 次數 時間 1 溫度變數 10.0 10.0 1 2022/9/26 上午11:49:12 2 最後來的是主人 10.0 10.0 1 2022/9/26 上午11:49:33 3 印出2個指定整數 10.0 10.0 1 2022/9/26 上午11:49:49 4 加上形容詞-1 10.0 10.0 1 2022/9/26 上午11:50:39 5 加上形容詞-2 10.0 10.0 1 2022/9/26 上午11:53:35 6 浮點數溫度變數 10.0 10.0 1 2022/9/26 上午11:53:58 7 印出2個指定浮點數 10.0 10.0 1 2022/9/26 上午11:54:28 8 使用有序format輸出 15.0 15.0 2 2022/9/26 下午3:03:01 9 浮點數與形容詞 15.0 15.0 1 2022/9/26 下午3:04:20 10 自主學習 5.0 5.0 1 2022/12/16 下午9:12:31 11 選擇題 5.00 5.0 2 2022/9/26 下午3:04:53 110 110
  • 23. 1. 溫度變數 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 1 2022/9/26 上午11:49:12 程式語言 程式碼 Python ''' 3_1.變數宣告與賦值-溫度變數(10.0) ''' t=3 print(t)
  • 24. 2. 最後來的是主人 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 1 2022/9/26 上午11:49:33 程式語言 程式碼 Python ''' 3_2.變數宣告與賦值-最後來的是主人(10.0) ''' a=1 a=2 a=3 a=4 a=5 print(a)
  • 25. 3. 印出2個指定整數 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 1 2022/9/26 上午11:49:49 程式語言 程式碼 Python ''' 3_3.變數宣告與賦值-印出2個指定整數(10.0) ''' a=10 b=20 print(a,b)
  • 26. 4. 加上形容詞-1 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 1 2022/9/26 上午11:50:39 程式語言 程式碼 Python ''' 3_4.變數宣告與賦值-加上形容詞-1(10.0) ''' c=3 print("There are {0} cats.".format(c))
  • 27. 5. 加上形容詞-2 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 1 2022/9/26 上午11:53:35 程式語言 程式碼 Python a=3 b=4 print("There are {0} cats and".format(a),end="") print(" {0} dogs.".format(b))
  • 28. 6. 浮點數溫度變數 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 1 2022/9/26 上午11:53:58 程式語言 程式碼 Python ''' 3_6.變數宣告與賦值-浮點數溫度變數(10.0) ''' t=33.33 print(t)
  • 29. 7. 印出2個指定浮點數 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 1 2022/9/26 上午11:54:28 程式語言 程式碼 Python ''' 3_7.變數宣告與賦值-印出2個指定浮點數(10.0) ''' a=3.333 b=4.4444 print(a) print(b)
  • 30. 8. 使用有序format輸出 分數: 15.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 15.0 2 2022/9/26 下午3:03:01 程式語言 程式碼 Python ''' 3_8.變數宣告與賦值-使用有序format輸出(15.0) ''' a=11.1 b=22.22 c=33.333 print("{0} {1} {2}".format(a,b,c))
  • 31. 9. 浮點數與形容詞 分數: 15.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 15.0 1 2022/9/26 下午3:04:20 程式語言 程式碼 Python ''' 3_9.變數宣告與賦值-浮點數與形容詞(15.0) ''' a=3.333 b=4.4444 print("They are {0} and {1}.".format(a,b))
  • 32. 10. 自主學習 分數: 5.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 5.0 1 2022/12/16 下午9:12:31 程式語言 程式碼 Python ''' 3_10.變數宣告與賦值-自主學習(5.0) ''' a=1600 print(a) print(bin(a)) print(oct(a)) print(hex(a))
  • 33. 11. 選擇題 (題目) 配分: 5.00 題型: 選擇-單選題
  • 34. 11. 選擇題 (答案) 最後一次判分時間: 2022/9/26 下午3:04:53 花費秒數: 0 判分次數: 2 # 得分 配分 你的答案 正確答案 0 2.5 2.5 A A 1 2.5 2.5 D D
  • 35. 參考資料 [4]浮點數與其輸出格式 Page 35, 沈宏霖(30137)@科技應用專題三自 資料型態(PDF) //www.18dice.tw/fs/materials/Python/111/A3-資料型態與浮點數.pdf 浮點數與其輸出格式(影音) https://www.youtube.com/embed/Q2MgeS7uKyo 總結 [4]浮點數與其輸出格式 Page 35, 沈宏霖(30137)@科技應用專題三自 # 名稱 配分 得分 次數 時間 1 資料型態 15.0 15.0 2 2022/9/26 下午3:07:12 2 印出浮點數-1 15.0 15.0 1 2022/9/26 下午3:08:33 3 印出浮點數-2 15.0 15.0 1 2022/9/26 下午6:27:33 4 印出浮點數-3 15.0 15.0 2 2022/9/26 下午6:34:52 5 印出浮點數-4 15.0 15.0 1 2022/9/26 下午6:49:44 6 固定格式 10.0 10.0 1 2022/9/26 下午6:53:30 7 浮點數轉整數 15.0 15.0 1 2022/9/26 下午6:55:10 9 選擇題 7.50 7.5 3 2022/9/26 下午6:56:00 112 107
  • 36. 1. 資料型態 分數: 15.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 15.0 2 2022/9/26 下午3:07:12 程式語言 程式碼 Python ''' 4_1.浮點數與其輸出格式-資料型態(15.0) ''' a=10 b=10.01 c=10+10j text='DICE' print(type(a)) print(type(b)) print(type(c)) print(type(text))
  • 37. 2. 印出浮點數-1 分數: 15.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 15.0 1 2022/9/26 下午3:08:33 程式語言 程式碼 Python ''' 4_2.浮點數與其輸出格式-印出浮點數-1(15.0) ''' a=10.1 b=5.2 print("num1={0}".format(a)) print("num2={0}".format(b))
  • 38. 3. 印出浮點數-2 分數: 15.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 15.0 1 2022/9/26 下午6:27:33 程式語言 程式碼 Python ''' 4_3.浮點數與其輸出格式-印出浮點數-2(15.0) ''' a=10.100000 b=5.200000 print("num1={0:f}".format(a)) print("num2={0:f}".format(b))
  • 39. 4. 印出浮點數-3 分數: 15.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 15.0 2 2022/9/26 下午6:34:52 程式語言 程式碼 Python ''' 4_4.浮點數與其輸出格式-印出浮點數-3(15.0) ''' a=10.10 b=5.200 print("num1={0:.2f}".format(a)) print("num2={0:.3f}".format(b))
  • 40. 5. 印出浮點數-4 分數: 15.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 15.0 1 2022/9/26 下午6:49:44 程式語言 程式碼 Python ''' 4_5.浮點數與其輸出格式-印出浮點數-4(15.0) ''' a=10.10 b=5.200 print("num1={0:.2f} num2={1:.3f}".format(a,b))
  • 41. 6. 固定格式 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 1 2022/9/26 下午6:53:30 程式語言 程式碼 Python ''' 4_6.浮點數與其輸出格式-固定格式(10.0) ''' a=160 print("My height is {0:10.2f} CM.".format(a)) b=55.22 print("My weight is {0:10.2f} KG.".format(b))
  • 42. 7. 浮點數轉整數 分數: 15.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 15.0 1 2022/9/26 下午6:55:10 程式語言 程式碼 Python ''' 4_7.浮點數與其輸出格式-浮點數轉整數(15.0) ''' a=3.14 b=int(a) print("{0}".format(a)) print(b) print(type(b))
  • 43. 9. 選擇題 (題目) 配分: 7.50 題型: 選擇-單選題
  • 44. 9. 選擇題 (答案) 最後一次判分時間: 2022/9/26 下午6:56:00 花費秒數: 0 判分次數: 3 # 得分 配分 你的答案 正確答案 0 2.5 2.5 D D 1 2.5 2.5 B B 2 2.5 2.5 C C
  • 45. 參考資料 [5]文字型態與輸出(彈) Page 45, 沈宏霖(30137)@科技應用專題三自 文字型態與輸出(PDF) //www.18dice.tw/fs/materials/Python/111/A4-文字型態與輸出.pdf 文字處理與輸出(影音) https://www.youtube.com/embed/Vi0SylkaoRg 總結 [5]文字型態與輸出(彈) Page 45, 沈宏霖(30137)@科技應用專題三自 # 名稱 配分 得分 次數 時間 1 字串 5.0 5.0 2 2022/9/26 下午7:03:45 2 從字串找字元 5.0 5.0 1 2022/9/26 下午7:05:42 3 從字串找單字 5.0 5.0 11 2022/11/21 下午9:31:08 4 分割字串 5.0 5.0 1 2022/9/26 下午7:23:27 5 數也是字 5.0 5.0 1 2022/9/26 下午7:26:12 6 倒著印字串 5.0 5.0 2 2022/9/26 下午7:17:38 7 選擇題 10.00 10.0 4 2022/9/26 下午7:18:39 40 40
  • 46. 1. 字串 分數: 5.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 5.0 2 2022/9/26 下午7:03:45 程式語言 程式碼 Python ''' 5_1.文字型態與輸出(彈)-字串(5.0) ''' a='Hello, Dice' print(a)
  • 47. 2. 從字串找字元 分數: 5.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 5.0 1 2022/9/26 下午7:05:42 程式語言 程式碼 Python ''' 5_2.文字型態與輸出(彈)-從字串找字元(5.0) ''' a="Hello,Dice" print(a[0]) print(a[1]) print(a[2]) print(a[3]) print(a[4])
  • 48. 3. 從字串找單字 分數: 5.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 5.0 11 2022/11/21 下午9:31:08 程式語言 程式碼 Python ''' 5_3.文字型態與輸出(彈)-從字串找單字(5.0) ''' a="Hello, Dice, " print(a[0:5]) print(a[7:11])
  • 49. 4. 分割字串 分數: 5.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 5.0 1 2022/9/26 下午7:23:27 程式語言 程式碼 Python ''' 5_4.文字型態與輸出(彈)-分割字串(5.0) ''' text="I love you" texttall=text.split(" ") text0= text.split(" ")[0] text1=text.split(" ")[1] text2=text.split(" ")[2] print(texttall) print(text0) print(text1) print(text2)
  • 50. 5. 數也是字 分數: 5.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 5.0 1 2022/9/26 下午7:26:12 程式語言 程式碼 Python ''' 5_5.文字型態與輸出(彈)-數也是字(5.0) ''' a="06 6333333" a1=a.split(" ")[0] a2=a.split(" ")[1] print(a1) print(a2) print(type(a1)) print(type(a2))
  • 51. 6. 倒著印字串 分數: 5.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 5.0 2 2022/9/26 下午7:17:38 程式語言 程式碼 Python ''' 5_6.文字型態與輸出(彈)-倒著印字串(5.0) ''' a="Hello, Dice" print(a[::-1])
  • 52. 7. 選擇題 (題目) 配分: 10.00 題型: 選擇-單選題
  • 53. 7. 選擇題 (答案) 最後一次判分時間: 2022/9/26 下午7:18:39 花費秒數: 0 判分次數: 4 # 得分 配分 你的答案 正確答案 0 2.5 2.5 A A 1 2.5 2.5 D D 2 2.5 2.5 A A 3 2.5 2.5 B B
  • 54. 參考資料 [6]輸入語句 Page 54, 沈宏霖(30137)@科技應用專題三自 輸入語句(PDF) //www.18dice.tw/fs/materials/Python/111/A5-輸入語句.pdf 輸入語句(影音) https://www.youtube.com/embed/yIbz_a6Vu_c 總結 [6]輸入語句 Page 54, 沈宏霖(30137)@科技應用專題三自 # 名稱 配分 得分 次數 時間 1 輸入1筆資料 20.0 20.0 1 2022/9/26 下午7:31:28 2 輸入2筆資料 20.0 20.0 1 2022/9/26 下午7:32:21 3 正序 20.0 20.0 1 2022/9/26 下午7:33:30 4 倒序 20.0 20.0 1 2022/9/26 下午7:34:03 5 長方形 10.0 10.0 1 2022/9/26 下午7:34:33 6 浮點數輸出入 10.0 10.0 1 2022/9/26 下午7:36:22 7 字串 5.0 5.0 1 2022/9/26 下午7:37:33 8 轉型 5.0 5.0 1 2022/9/26 下午7:44:30 9 彈:再玩長方形 5.0 5.0 1 2022/9/26 下午7:47:17 120 115
  • 55. 1. 輸入1筆資料 分數: 20.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 20.0 1 2022/9/26 下午7:31:28 程式語言 程式碼 Python ''' 6_1.輸入語句-輸入1筆資料(20.0) ''' a=input() print(a)
  • 56. 2. 輸入2筆資料 分數: 20.0 程式語言: {} 你的答案: 分數 判分次數 最後一次判分時間 20.0 1 2022/9/26 下午7:32:21 程式語言 程式碼 Python ''' 6_2.輸入語句-輸入2筆資料(20.0) ''' a=input() b=input() print(a) print("{0}".format(b))
  • 57. 3. 正序 分數: 20.0 程式語言: {} 你的答案: 分數 判分次數 最後一次判分時間 20.0 1 2022/9/26 下午7:33:30 程式語言 程式碼 Python ''' 6_3.輸入語句-正序(20.0) ''' a=input() b=input() print(a,b)
  • 58. 4. 倒序 分數: 20.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 20.0 1 2022/9/26 下午7:34:03 程式語言 程式碼 Python ''' 6_4.輸入語句-倒序(20.0) ''' a=input() b=input() print(b) print(a)
  • 59. 5. 長方形 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 1 2022/9/26 下午7:34:33 程式語言 程式碼 Python ''' 6_5.輸入語句-長方形(10.0) ''' a=input() b=input() print(a,b,a,b)
  • 60. 6. 浮點數輸出入 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 1 2022/9/26 下午7:36:22 程式語言 程式碼 Python ''' 6_6.輸入語句-浮點數輸出入(10.0) ''' a=input() b=input() c=input() print("{0}n{1}n{2}".format(a,b,c))
  • 61. 7. 字串 分數: 5.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 5.0 1 2022/9/26 下午7:37:33 程式語言 程式碼 Python ''' 6_7.輸入語句-字串(5.0) ''' a=input() b=input() c=input() print(a) print("{0}".format(b)) print(c)
  • 62. 8. 轉型 分數: 5.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 5.0 1 2022/9/26 下午7:44:30 程式語言 程式碼 Python ''' 6_8.輸入語句-轉型(5.0) ''' a=int(input()) b=float(input()) print(a) print(b) print(type(a)) print(type(b))
  • 63. 9. 彈:再玩長方形 分數: 5.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 5.0 1 2022/9/26 下午7:47:17 程式語言 程式碼 Python ''' 6_9.輸入語句-彈:再玩長方形(5.0) ''' a=input() l=int(a.split(" ")[0]) w=int(a.split(" ")[1]) print(l,w,l,w)
  • 64. 參考資料 [7]加法與轉型 Page 64, 沈宏霖(30137)@科技應用專題三自 加法與轉型(PDF) //www.18dice.tw/fs/materials/Python/111/A6-加法與轉型.pdf 加法與轉型(影音) https://www.youtube.com/embed/4Bw42r-UnZY 總結 [7]加法與轉型 Page 64, 沈宏霖(30137)@科技應用專題三自 # 名稱 配分 得分 次數 時間 1 文字相加 20.0 20.0 1 2022/9/26 下午7:50:09 2 整數相加 20.0 20.0 1 2022/9/26 下午9:38:17 3 =不是等號 20.0 20.0 1 2022/9/26 下午9:39:24 4 文字相加 20.0 20.0 1 2022/9/26 下午9:40:01 5 浮點數相加 20.0 20.0 1 2022/9/26 下午9:40:49 6 彈:加法再現 5.0 5.0 6 2022/10/24 上午10:34:16 7 自主學習 5.0 5.0 4 2022/10/24 上午10:23:05 8 選擇題 10.00 10.0 4 2022/9/26 下午9:59:50 120 120
  • 65. 1. 文字相加 分數: 20.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 20.0 1 2022/9/26 下午7:50:09 程式語言 程式碼 Python ''' 7_1.加法與轉型-文字相加(20.0) ''' a=input() b=input() c=a+b print("{0}+{1}={2}".format(a,b,c))
  • 66. 2. 整數相加 分數: 20.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 20.0 1 2022/9/26 下午9:38:17 程式語言 程式碼 Python ''' 7_2.加法與轉型-整數相加(20.0) ''' a=int(input()) b=int(input()) c=a+b print("{0}+{1}={2}".format(a,b,c))
  • 67. 3. =不是等號 分數: 20.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 20.0 1 2022/9/26 下午9:39:24 程式語言 程式碼 Python ''' 7_3.加法與轉型-=不是等號(20.0) ''' a=int(input()) a=a+10 print("a變為{0}".format(a))
  • 68. 4. 文字相加 分數: 20.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 20.0 1 2022/9/26 下午9:40:01 程式語言 程式碼 Python ''' 7_4.加法與轉型-文字相加(20.0) ''' a=input() b=input() print(a+b)
  • 69. 5. 浮點數相加 分數: 20.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 20.0 1 2022/9/26 下午9:40:49 程式語言 程式碼 Python ''' 7_5.加法與轉型-浮點數相加(20.0) ''' a=float(input()) b=float(input()) print(a+b)
  • 70. 6. 彈:加法再現 分數: 5.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 5.0 6 2022/10/24 上午10:34:16 程式語言 程式碼 Python ''' 7_6.加法與轉型-彈:加法再現(5.0) ''' num=input() a=int(num.split(" ")[0]) b=int(num.split(" ")[1]) num=a+b print("{}+{}={}".format(a,b,num))
  • 71. 7. 自主學習 分數: 5.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 5.0 4 2022/10/24 上午10:23:05 程式語言 程式碼 Python ''' 7_7.加法與轉型-自主學習(5.0) ''' a=input() b=a.lower() print(b)
  • 72. 8. 選擇題 (題目) 配分: 10.00 題型: 選擇-單選題
  • 73. 8. 選擇題 (答案) 最後一次判分時間: 2022/9/26 下午9:59:50 花費秒數: 0 判分次數: 4 # 得分 配分 你的答案 正確答案 0 2.5 2.5 D D 1 2.5 2.5 C C 2 2.5 2.5 C C 3 2.5 2.5 A A
  • 74. 參考資料 [8]算術運算子 Page 74, 沈宏霖(30137)@科技應用專題三自 算術運算子(PDF) //www.18dice.tw/fs/materials/Python/111/A7-算術運算子.pdf 算術運算子(影音) https://www.youtube.com/embed/0vml4Er-e-Q 總結 [8]算術運算子 Page 74, 沈宏霖(30137)@科技應用專題三自 # 名稱 配分 得分 次數 時間 1 四則運算-1 15.0 15.0 2 2022/9/26 下午9:57:13 2 四則運算-2 15.0 15.0 1 2022/9/28 上午11:26:15 3 其他運算-1 10.0 10.0 4 2023/1/9 下午10:10:38 4 其他運算-2 10.0 10.0 3 2022/9/28 下午8:39:14 5 時間計算 10.0 10.0 1 2022/9/28 下午8:43:51 6 溫度換算 10.0 10.0 2 2022/9/30 下午5:20:51 7 3個溫度的換算 10.0 10.0 1 2022/9/30 下午5:24:58 8 圓周長與面積 10.0 10.0 2 2022/9/30 下午5:29:31 9 彈:薪水 10.0 10.0 2 2022/9/30 下午5:33:24 10 彈:年利率 5.0 0.0 5 2023/1/9 下午10:13:42 11 自主學習 5.0 5.0 2 2022/10/24 上午10:23:34 12 選擇題 12.50 12.5 2 2022/9/30 下午5:35:53 122 117
  • 75. 1. 四則運算-1 分數: 15.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 15.0 2 2022/9/26 下午9:57:13 程式語言 程式碼 Python ''' 8_1.算術運算子-四則運算-1(15.0) ''' x=int(input()) y=int(input()) x1=x+5 y=y-x1 a=x1*y b=x1/y print(x1,y,a,b)
  • 76. 2. 四則運算-2 分數: 15.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 15.0 1 2022/9/28 上午11:26:15 程式語言 程式碼 Python ''' 8_2.算術運算子-四則運算-2(15.0) ''' a=int(input()) b=int(input()) print("{0}+{1}={2}".format(a,b,a+b)) print("{0}-{1}={2}".format(a,b,a-b)) print("{0}*{1}={2}".format(a,b,a*b)) print("{0}/{1}={2}".format(a,b,a/b))
  • 77. 3. 其他運算-1 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 4 2023/1/9 下午10:10:38 程式語言 程式碼 Python ''' 8_3.算術運算子-其他運算-1(10.0) ''' import math a=int(input()) b=int(input()) print("{0}".format(a//b)) print("{0}".format(a%b)) print("{0}".format(a**b)) print(math.sqrt(a*a+b*b))
  • 78. 4. 其他運算-2 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 3 2022/9/28 下午8:39:14 程式語言 程式碼 Python ''' 8_4.算術運算子-其他運算-2(10.0) ''' a=int(input()) b=int(input()) c=int(input()) d=int(input()) e=(a-b)/(c+d) print("{0}".format(e))
  • 79. 5. 時間計算 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 1 2022/9/28 下午8:43:51 程式語言 程式碼 Python ''' 8_5.算術運算子-時間計算(10.0) ''' a=int(input()) b=a*75 c=b//60 d=b%60 print("{0}個粽子共需要{1}分{2}秒".format(a,c,d))
  • 80. 6. 溫度換算 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 2 2022/9/30 下午5:20:51 程式語言 程式碼 Python ''' 8_6.算術運算子-溫度換算(10.0) ''' a=float(input()) print("華氏溫度為{0}".format(((9/5)*a)+32))
  • 81. 7. 3個溫度的換算 分數: 10.0 程式語言: {} 你的答案: 分數 判分次數 最後一次判分時間 10.0 1 2022/9/30 下午5:24:58 程式語言 程式碼 Python ''' 8_7.算術運算子-3個溫度的換算(10.0) ''' a=float(input()) b=float(input()) c=float(input()) print("1.華氏溫度為{0}".format(((9/5)*a)+32)) print("2.華氏溫度為{0}".format(((9/5)*b)+32)) print("3.華氏溫度為{0}".format(((9/5)*c)+32))
  • 82. 8. 圓周長與面積 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 2 2022/9/30 下午5:29:31 程式語言 程式碼 Python ''' 8_8.算術運算子-圓周長與面積(10.0) ''' r=float(input()) a=float(input()) r2=r*2*3.14 R=r*r*3.14 ar=R*(a/360) print("圓周長為{0:.2f}".format(r2)) print("圓面積為{0:.2f}".format(R)) print("扇形面積為{0:.2f}".format(ar))
  • 83. 9. 彈:薪水 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 2 2022/9/30 下午5:33:24 程式語言 程式碼 Python ''' 8_9.算術運算子-彈:薪水(10.0) ''' a1=float(input()) a2=float(input()) a3=float(input()) print("週薪US{0:.2f}元".format(a1*0.09+200)) print("週薪US{0:.2f}元".format(a2*0.09+200)) print("週薪US{0:.2f}元".format(a3*0.09+200))
  • 84. 10. 彈:年利率 分數: 5.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 0.0 5 2023/1/9 下午10:13:42 程式語言 程式碼 Python ''' 8_10.算術運算子-彈:年利率(5.0) ''' for i in range(1,3,1): a=int(input()) b=float(input()) c=int(input()) print("{0:.2f}".format(a*b*c/365))
  • 85. 11. 自主學習 分數: 5.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 5.0 2 2022/10/24 上午10:23:34 程式語言 程式碼 Python ''' 8_11.算術運算子-自主學習(5.0) ''' a=input() b=a.upper() print(b)
  • 86. 12. 選擇題 (題目) 配分: 12.50 題型: 選擇-單選題
  • 87. 12. 選擇題 (答案) 最後一次判分時間: 2022/9/30 下午5:35:53 花費秒數: 0 判分次數: 2 # 得分 配分 你的答案 正確答案 0 2.5 2.5 A A 1 2.5 2.5 A A 2 2.5 2.5 D D 3 2.5 2.5 B B 4 2.5 2.5 A A
  • 88. 參考資料 [9]關係與邏輯運算子 Page 88, 沈宏霖(30137)@科技應用專題三自 比較-真假(PDF) //www.18dice.tw/fs/materials/Python/111/A8-比較-真假.pdf 關係與邏輯運算子(影音) https://www.youtube.com/embed/XnJFPukORXA 總結 [9]關係與邏輯運算子 Page 88, 沈宏霖(30137)@科技應用專題三自 # 名稱 配分 得分 次數 時間 1 數值比較 10.0 10.0 1 2022/10/17 上午10:58:05 2 字元比較 10.0 10.0 2 2022/10/17 上午11:00:43 3 同齡好友 10.0 10.0 1 2022/10/17 上午11:01:47 4 忘年之交 10.0 10.0 3 2022/10/17 上午11:14:54 5 邏輯比較 10.0 10.0 1 2022/10/18 下午7:36:32 6 今天要上課 10.0 10.0 1 2022/10/18 下午7:38:21 7 兒童老人免門票 20.0 20.0 1 2022/10/18 下午7:42:10 8 BMI標準嗎 20.0 20.0 1 2022/10/18 下午7:47:26 9 自主學習 5.0 5.0 1 2022/10/18 下午7:51:43 10 選擇題 15.00 15.0 7 2022/10/18 下午7:53:33 120 120
  • 89. 1. 數值比較 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 1 2022/10/17 上午10:58:05 程式語言 程式碼 Python ''' 9_1.關係與邏輯運算子-數值比較(10.0) ''' print(3<5) print(3>5) print(3!=5) print(3==3)
  • 90. 2. 字元比較 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 2 2022/10/17 上午11:00:43 程式語言 程式碼 Python ''' 9_2.關係與邏輯運算子-字元比較(10.0) ''' print("abc"=="abcd") print("abcd"=="abcd") print("abc">"abd") print("abc"<"abd") print("23"<"3") print("abc"!="abc") print("abc"!="ABC")
  • 91. 3. 同齡好友 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 1 2022/10/17 上午11:01:47 程式語言 程式碼 Python ''' 9_3.關係與邏輯運算子-同齡好友(10.0) ''' age1=int(input()) age2=int(input()) print(age1==age2)
  • 92. 4. 忘年之交 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 3 2022/10/17 上午11:14:54 程式語言 程式碼 Python ''' 9_4.關係與邏輯運算子-忘年之交(10.0) ''' age1=int(input()) age2=int(input()) print(age1!=age2)
  • 93. 5. 邏輯比較 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 1 2022/10/18 下午7:36:32 程式語言 程式碼 Python ''' 9_5.關係與邏輯運算子-邏輯比較(10.0) ''' print(3>5 and 5<10) print(3<5 and 5<10) print(3>5 and 5>10) print(3>5 or 5<10) print(3<5 or 5<10) print(3>5 or 5>10) print(not(3>5 and 5<10)) print(not(3<5 and 5<10)) print(not(3>5 and 5>10))
  • 94. 6. 今天要上課 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 1 2022/10/18 下午7:38:21 程式語言 程式碼 Python ''' 9_6.關係與邏輯運算子-今天要上課(10.0) ''' a=int(input()) print(a<=5)
  • 95. 7. 兒童老人免門票 分數: 20.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 20.0 1 2022/10/18 下午7:42:10 程式語言 程式碼 Python ''' 9_7.關係與邏輯運算子-兒童老人免門票(20.0) ''' a=int(input()) print(a<65 and a>12)
  • 96. 8. BMI標準嗎 分數: 20.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 20.0 1 2022/10/18 下午7:47:26 程式語言 程式碼 Python a=int(input()) b=float(input()) c=a/(b*b) print("{}".format(c)) print(c>18.5 and c<24)
  • 97. 9. 自主學習 分數: 5.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 5.0 1 2022/10/18 下午7:51:43 程式語言 程式碼 Python ''' 9_9.關係與邏輯運算子-自主學習(5.0) ''' a=input() print(a==a or a==e or a==o or a==i or a==u)
  • 98. 10. 選擇題 (題目) 配分: 15.00 題型: 選擇-單選題
  • 99. 10. 選擇題 (答案) 最後一次判分時間: 2022/10/18 下午7:53:33 花費秒數: 0 判分次數: 7 # 得分 配分 你的答案 正確答案 0 2.5 2.5 B B 1 2.5 2.5 C C 2 2.5 2.5 B B 3 2.5 2.5 A A 4 2.5 2.5 A A 5 2.5 2.5 B B
  • 100. 參考資料 [10]判斷式-if Page 100, 沈宏霖(30137)@科技應用專題三自 判斷式-if(PDF) //www.18dice.tw/fs/materials/Python/111/B1-判斷式-if.pdf 判斷式-if(影音) https://www.youtube.com/embed/Kb4bx5nB46c 總結 [10]判斷式-if Page 100, 沈宏霖(30137)@科技應用專題三自 # 名稱 配分 得分 次數 時間 1 及格 10.0 10.0 1 2022/10/18 下午7:56:53 2 選偶數 10.0 10.0 2 2022/10/18 下午8:00:22 3 發現不相等 10.0 10.0 1 2022/10/18 下午8:12:37 4 輸出絕對值 15.0 15.0 2 2022/10/18 下午8:18:46 5 正數區塊 15.0 15.0 1 2022/10/18 下午8:45:26 6 門票問題 20.0 20.0 1 2022/10/18 下午8:49:36 7 今天要上課 20.0 20.0 1 2022/10/18 下午8:51:50 8 自主學習 5.0 5.0 5 2022/11/7 上午10:46:42 9 選擇題 7.50 7.5 3 2022/10/20 下午7:42:22 112 112
  • 101. 1. 及格 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 1 2022/10/18 下午7:56:53 程式語言 程式碼 Python ''' 10_1.判斷式-if-及格(10.0) ''' a=int(input()) if a>=60: print("{0}分及格".format(a))
  • 102. 2. 選偶數 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 2 2022/10/18 下午8:00:22 程式語言 程式碼 Python ''' 10_2.判斷式-if-選偶數(10.0) ''' a=int(input()) if a%2==0: print("{0}是偶數".format(a)) a=int(input()) if a%2==0: print("{0}是偶數".format(a))
  • 103. 3. 發現不相等 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 1 2022/10/18 下午8:12:37 程式語言 程式碼 Python ''' 10_3.判斷式-if-發現不相等(10.0) ''' a=int(input()) b=int(input()) if a!=b: print("{0}!={1}".format(a,b)) a=int(input()) b=int(input()) if a!=b: print("{0}!={1}".format(a,b))
  • 104. 4. 輸出絕對值 分數: 15.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 15.0 2 2022/10/18 下午8:18:46 程式語言 程式碼 Python ''' 10_4.判斷式-if-輸出絕對值(15.0) ''' a=int(input()) if a<0: print("{0}".format(a*-1)) if a>0: print("{0}".format(a)) a=int(input()) if a<0: print("{0}".format(a*-1)) if a>0: print("{0}".format(a))
  • 105. 5. 正數區塊 分數: 15.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 15.0 1 2022/10/18 下午8:45:26 程式語言 程式碼 Python ''' 10_5.判斷式-if-正數區塊(15.0) ''' a=int(input()) if a>0: print("{}是正數".format(a)) print("正數區塊")
  • 106. 6. 門票問題 分數: 20.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 20.0 1 2022/10/18 下午8:49:36 程式語言 程式碼 Python ''' 10_6.判斷式-if-門票問題(20.0) ''' a=int(input()) if (a<65 and a>12): print("{}歲要門票".format(a))
  • 107. 7. 今天要上課 分數: 20.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 20.0 1 2022/10/18 下午8:51:50 程式語言 程式碼 Python ''' 10_7.判斷式-if-今天要上課(20.0) ''' a=int(input()) if a<=5: print("{}要上課".format(a)) a=int(input()) if a<=5: print("{}要上課".format(a))
  • 108. 8. 自主學習 分數: 5.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 5.0 5 2022/11/7 上午10:46:42
  • 109. 程式語言 程式碼 Python ''' 10_8.判斷式-if-自主學習(5.0) ''' a=int(input()) b=float(input()) c=float(input()) d=float(input()) e=float(input()) if(((b+c)-d)>e): print("帳號: {}".format(a)) print("信用額度: {0:.2f}".format(e)) print("新的餘額: {}".format((b+c)-d)) print("超出信用額度") if(((b+c)-d)<e): print("帳號: {}".format(a)) print("信用額度: {0:.2f}".format(e)) print("新的餘額: {}".format((b+c)-d))
  • 110. 9. 選擇題 (題目) 配分: 7.50 題型: 選擇-單選題
  • 111. 9. 選擇題 (答案) 最後一次判分時間: 2022/10/20 下午7:42:22 花費秒數: 0 判分次數: 3 # 得分 配分 你的答案 正確答案 0 2.5 2.5 C C 1 2.5 2.5 B B 2 2.5 2.5 B B
  • 112. 參考資料 [12]判斷式-if else Page 112, 沈宏霖(30137)@科技應用專題三自 判斷式:if else(PDF) //www.18dice.tw/fs/materials/Python/111/B3-判斷式ifelse.pdf 判斷式if else(影音) https://www.youtube.com/embed/ObUVyLQYs3U 總結 [12]判斷式-if else Page 112, 沈宏霖(30137)@科技應用專題三自 # 名稱 配分 得分 次數 時間 1 是否及格 15.0 15.0 4 2022/10/20 下午9:41:56 2 是否能構成三角形? 15.0 15.0 2 2022/10/20 下午9:48:43 3 是否直角三角形? 15.0 15.0 2 2022/10/20 下午10:01:16 4 是否與7相關? 15.0 15.0 1 2022/10/21 下午6:42:41 5 拆解三位數 10.0 10.0 1 2022/10/21 下午8:27:26 6 是否為3的倍數 10.0 10.0 3 2022/11/14 上午10:59:59 7 是否為迴文 20.0 20.0 2 2022/11/21 下午9:36:20 8 選擇題 5.00 5.0 2 2022/11/21 下午9:27:53 105 105
  • 113. 1. 是否及格 分數: 15.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 15.0 4 2022/10/20 下午9:41:56 程式語言 程式碼 Python ''' 12_1.判斷式-if else-是否及格(15.0) ''' a=int(input()) if(a>=60): print("{}分及格".format(a)) else: print("{}分不及格".format(a)) a=int(input()) if(a>=60): print("{}分及格".format(a)) else: print("{}分不及格".format(a))
  • 114. 2. 是否能構成三角形? 分數: 15.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 15.0 2 2022/10/20 下午9:48:43 程式語言 程式碼 Python ''' 12_2.判斷式-if else-是否能構成三角形?(15.0) ''' a=int(input()) b=int(input()) c=int(input()) if (a==b and a==c): print("{} {} {}可以構成三角形".format(a,b,c)) else: print("{} {} {}不可以構成三角形".format(a,b,c)) a=int(input()) b=int(input()) c=int(input()) if (a==b and a==c): print("{} {} {}可以構成三角形".format(a,b,c)) else: print("{} {} {}不可以構成三角形".format(a,b,c))
  • 115. 3. 是否直角三角形? 分數: 15.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 15.0 2 2022/10/20 下午10:01:16 程式語言 程式碼 Python ''' 12_3.判斷式-if else-是否直角三角形?(15.0) ''' i=1 while (i<=2): a=int(input()) b=int(input()) c=int(input()) if(a**2+b**2==c**2 or a**2==b**2+c**2 or b**2==a**2+c**2): print("{} {} {}是直角三角形".format(a,b,c)) else: print("{} {} {}不是直角三角形".format(a,b,c)) i=i+1
  • 116. 4. 是否與7相關? 分數: 15.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 15.0 1 2022/10/21 下午6:42:41 程式語言 程式碼 Python ''' 12_4.判斷式-if else-是否與7相關?(15.0) ''' i=1 while(i<=3): a=int(input()) if(a%7==0 or a%10==7): print("{}符合標準".format(a)) else: print("{}不符合標準".format(a)) i=i+1
  • 117. 5. 拆解三位數 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 1 2022/10/21 下午8:27:26 程式語言 程式碼 Python ''' 12_5.判斷式-if else-拆解三位數(10.0) ''' a=int(input()) print("{}".format(a//100)) print("{}".format(a%100//10)) print("{}".format(a%10))
  • 118. 6. 是否為3的倍數 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 3 2022/11/14 上午10:59:59 程式語言 程式碼 Python ''' 12_6.判斷式-if else-是否為3的倍數(10.0) ''' a=int(input()) b=a//100 c=a%100//10 d=a%10 if(b%3!=0): print("百位數{}不是3的倍數".format(b)) else: print("百位數{}是3的倍數".format(b)) if(c%3!=0): print("十位數{}不是3的倍數".format(c)) else: print("十位數{}是3的倍數".format(c)) if(d%3!=0): print("個位數{}不是3的倍數".format(d)) else: print("個位數{}是3的倍數".format(d))
  • 119. 7. 是否為迴文 分數: 20.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 20.0 2 2022/11/21 下午9:36:20 程式語言 程式碼 Python ''' 12_7.判斷式-if else-是否為迴文(20.0) ''' a=input() if(a[0]==a[4] and a[1]==a[3]): print("{}是迴文".format(a)) else: print("{}不是迴文".format(a))
  • 120. 8. 選擇題 (題目) 配分: 5.00 題型: 選擇-單選題
  • 121. 8. 選擇題 (答案) 最後一次判分時間: 2022/11/21 下午9:27:53 花費秒數: 18 判分次數: 2 # 得分 配分 你的答案 正確答案 0 2.5 2.5 C C 1 2.5 2.5 B B
  • 122. 參考資料 [13]巢狀選擇 Page 122, 沈宏霖(30137)@科技應用專題三自 巢狀選擇(PDF) //www.18dice.tw/fs/materials/Python/111/B4-巢狀選擇.pdf 巢狀選擇(影音) https://www.youtube.com/embed/_WTynsheliU 總結 [13]巢狀選擇 Page 122, 沈宏霖(30137)@科技應用專題三自 # 名稱 配分 得分 次數 時間 1 分數等第 40.0 40.0 9 2022/10/20 下午10:33:28 2 正三角形嗎? 30.0 8.095238208770752 4 2022/11/7 上午11:54:34 4 選擇題 12.50 12.5 5 2022/11/21 下午9:29:23 112 60
  • 123. 1. 分數等第 分數: 40.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 40.0 9 2022/10/20 下午10:33:28
  • 124. 程式語言 程式碼 C++ #include <iostream> using namespace std; int main(){ int a,i=1; while(i<=2){ cin>>a; if(a>100){ cout<<"error data"<<endl; } else if(a>=90){ cout<<"Your score is "<<a<<" and degree is A!"<<endl; } else if(a>=80){ cout<<"Your score is "<<a<<" and degree is B!"<<endl; } else if(a>=70){ cout<<"Your score is "<<a<<" and degree is C!"<<endl; } else if(a>=60){ cout<<"Your score is "<<a<<" and degree is D!"<<endl; } else if(a>=0){ cout<<"Your score is "<<a<<" and degree is F!"<<endl; } else{ cout<<"error data"<<endl; } i++; } return 0; } Python ''' 13_1.巢狀選擇-分數等第(40.0) ''' i=1 while(i<=2): a=int(input()) if a>100: print("error data") else: if a>=90: print("Your score is {0} and degree is A!".format(a)) else: if a>=80: print("Your score is {0} and degerr is B!".format(a)) else: if a>=70:
  • 125. print("Your score is {0} and degree is C!".format(a)) else: if a>=60: print("Your score is {0} and degree is D!".format(a)) else: if a>=0: print("Your score is {0} and degree is F!".format(a)) else: print("error data") i=i+1
  • 126. 2. 正三角形嗎? 分數: 30.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 8.095238208770752 4 2022/11/7 上午11:54:34 程式語言 程式碼 Python ''' 13_2.巢狀選擇-正三角形嗎?(30.0) ''' a=int(input()) b=int(input()) c=int(input()) if(a ==b and a==c): print("{} {} {}正三角形".format(a,b,c)) else: if(a*a+b*b==c*c or a*a+c*c==b*b or a*a==b*b+c*c): print("{} {} {}非正三角形".format(a,b,c)) else : print("{} {} {}無法構成三角形".format(a,b,c))
  • 127. 4. 選擇題 (題目) 配分: 12.50 題型: 選擇-單選題
  • 128. 4. 選擇題 (答案) 最後一次判分時間: 2022/11/21 下午9:29:23 花費秒數: 86 判分次數: 5 # 得分 配分 你的答案 正確答案 0 2.5 2.5 C C 1 2.5 2.5 D D 2 2.5 2.5 B B 3 2.5 2.5 A A 4 2.5 2.5 B B 5 - - - B
  • 129. 參考資料 [14]多選一 Page 129, 沈宏霖(30137)@科技應用專題三自 多選一(PDF) //www.18dice.tw/fs/materials/Python/111/B5-多選一.pdf 多選一(影音) https://www.youtube.com/embed/FFKl5IXCqDQ 總結 [14]多選一 Page 129, 沈宏霖(30137)@科技應用專題三自 # 名稱 配分 得分 次數 時間 1 點套餐 20.0 20.0 5 2022/11/7 上午10:55:26 2 分數分群 20.0 13.333333333333332 5 2022/11/14 上午11:00:10 3 猴子上學 20.0 20.0 1 2022/11/14 上午11:04:22 4 逛牛墟 20.0 20.0 5 2022/11/21 上午10:12:14 6 選擇題 5.00 5.0 2 2022/11/21 下午9:30:06 105 78
  • 130. 1. 點套餐 分數: 20.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 20.0 5 2022/11/7 上午10:55:26
  • 131. 程式語言 程式碼 Python ''' 14_1.多選一-點套餐(20.0) ''' i=1 while(i<=2): a=input() if (a=='A' or a=='a'): print("牛奶") print("西瓜") print("檸檬水") print("吐司") i=i+1 elif (a=='B' or a=='b'): print("西瓜") print("檸檬水") print("吐司") i=i+1 elif (a=='C'or a=='c'): print("檸檬水") print("吐司") i=i+1 elif (a=='D' or a=='d'): print("吐司") i=i+1 else : print("超出範圍") i=i+1
  • 132. 2. 分數分群 分數: 20.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 13.333333333333332 5 2022/11/14 上午11:00:10
  • 133. 程式語言 程式碼 Python ''' 14_2.多選一-分數分群(20.0) ''' i=1 while(i<=3): a=int(input()) if(a>100 or a<0): print("輸入錯誤") i=i+1 elif(a % 10==1 or a % 10==2 or a % 10==3): print("{}分A組".format(a)) i=i+1 elif(a%10==4 or a%10==5 or a%10==6): print("{}分B組".format(a)) i=i+1 elif(a%10==7 or a%10==8 or a%10==9): print("{}分C組".format(a)) i=i+1 else: print("{}分他班幫忙".format(a)) i=i+1
  • 134. 3. 猴子上學 分數: 20.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 20.0 1 2022/11/14 上午11:04:22 程式語言 程式碼 Python ''' 14_3.多選一-猴子上學(20.0) ''' a=int(input()) if(a==11): print("星期一猴子穿新衣") elif(a==22): print("星期二猴子肚子餓") elif(a==33): print("星期三猴子去爬山") elif(a==44): print("星期四猴子看電視") elif(a==55): print("星期五猴子去跳舞") else: print("我不知道")
  • 135. 4. 逛牛墟 分數: 20.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 20.0 5 2022/11/21 上午10:12:14 程式語言 程式碼 Python ''' 14_4.多選一-逛牛墟(20.0) ''' i=1 while(i<=4): a=int(input()) if(a>=32): print("{}日超出範圍".format(a)) i=i+1 elif(a%10==1 or a%10==4 or a%10==7): print("{}日在鹽水".format(a)) i=i+1 elif(a%10==2 or a%10==5 or a%10==8): print("{}日在善化".format(a)) i=i+1 elif(a%10==3 or a%10==6 or a%10==9): print("{}日在北港".format(a)) i=i+1 elif(a%10==0): print("{}日沒有".format(a)) i=i+1
  • 136. 6. 選擇題 (題目) 配分: 5.00 題型: 選擇-單選題
  • 137. 6. 選擇題 (答案) 最後一次判分時間: 2022/11/21 下午9:30:06 花費秒數: 39 判分次數: 2 # 得分 配分 你的答案 正確答案 0 2.5 2.5 D D 1 2.5 2.5 D D
  • 138. 參考資料 [15]重複-計數器控制 Page 138, 沈宏霖(30137)@科技應用專題三自 重複-計數器控制(PDF) //www.18dice.tw/fs/materials/Python/111/C1-重複-計數器控制.pdf 重複-計數器控制(影音) https://www.youtube.com/embed/GBov0U-UUfg 總結 [15]重複-計數器控制 Page 138, 沈宏霖(30137)@科技應用專題三自 # 名稱 配分 得分 次數 時間 1 10次判斷 20.0 20.0 8 2022/10/27 下午9:23:07 2 寫10次 20.0 20.0 1 2022/10/20 下午9:50:54 3 寫幾次 20.0 20.0 1 2022/10/20 下午9:54:06 4 輸入整數 20.0 20.0 1 2022/10/27 下午9:44:26 5 計算總和 10.0 10.0 4 2022/11/2 下午8:55:39 6 計算平均 10.0 10.0 1 2022/11/21 上午10:24:58 7 選擇題 15.00 15.0 2 2022/11/21 下午9:25:58 115 115
  • 139. 1. 10次判斷 分數: 20.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 20.0 8 2022/10/27 下午9:23:07 程式語言 程式碼 Python ''' 15_1.重複-計數器控制-10次判斷(20.0) ''' i=1 while i<=10: a=int(input()) if(a>=60): print("{}分及格".format(a)) else: print("{}分不及格".format(a)) i=i+1
  • 140. 2. 寫10次 分數: 20.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 20.0 1 2022/10/20 下午9:50:54 程式語言 程式碼 Python i=1 while i<=10: print("HaHaHa!") i=i+1
  • 141. 3. 寫幾次 分數: 20.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 20.0 1 2022/10/20 下午9:54:06 程式語言 程式碼 Python ''' 15_3.重複-計數器控制-寫幾次(20.0) ''' i=1 a=int(input()) while (i<=a): print("HaHaHa!") i=i+1
  • 142. 4. 輸入整數 分數: 20.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 20.0 1 2022/10/27 下午9:44:26 程式語言 程式碼 Python ''' 15_4.重複-計數器控制-輸入整數(20.0) ''' a=int(input()) i=1 while i<=a: b=int(input()) print("{}".format(b)) i=i+1;
  • 143. 5. 計算總和 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 4 2022/11/2 下午8:55:39 程式語言 程式碼 Python ''' 15_5.重複-計數器控制-計算總和(10.0) ''' i=1 c=0 a=int(input()) while (i<=a): b=int(input()) c=c+b i=i+1 print("{}".format(c))
  • 144. 6. 計算平均 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 1 2022/11/21 上午10:24:58 程式語言 程式碼 Python ''' 15_6.重複-計數器控制-計算平均(10.0) ''' s=0 i=1 a=int(input()) while(i<=a): b=int(input()) s=s+b i=i+1 print("{}".format(s/a))
  • 145. 7. 選擇題 (題目) 配分: 15.00 題型: 選擇-單選題
  • 146. 7. 選擇題 (答案) 最後一次判分時間: 2022/11/21 下午9:25:58 花費秒數: 60 判分次數: 2 # 得分 配分 你的答案 正確答案 0 2.5 2.5 C C 1 2.5 2.5 D D 2 2.5 2.5 D D 3 2.5 2.5 B B 4 2.5 2.5 A A 5 2.5 2.5 C C
  • 147. 參考資料 [16]重複-警示值控制 Page 147, 沈宏霖(30137)@科技應用專題三自 重複-警示值控制(PDF) //www.18dice.tw/fs/materials/Python/111/C2-重複-警示值控制.pdf 重複-警示值控制(影音) https://www.youtube.com/embed/9faum55PCTI 總結 [16]重複-警示值控制 Page 147, 沈宏霖(30137)@科技應用專題三自 # 名稱 配分 得分 次數 時間 1 寫到我說停 10.0 10.0 1 2022/10/27 下午9:59:42 2 計算幾次 10.0 10.0 1 2022/10/27 下午10:01:41 3 班級均分-直到我說停 10.0 10.0 1 2022/10/29 上午9:58:09 4 班級均分-到底迴圈幾次 10.0 10.0 2 2022/10/29 上午9:59:54 5 班級均分-總和 10.0 10.0 1 2022/11/21 上午10:34:52 6 班級均分-完成 10.0 10.0 3 2022/11/21 上午10:38:43 7 判斷直到負分 10.0 10.0 1 2022/11/21 上午10:41:10 8 相反數絕對值 10.0 10.0 2 2022/11/21 上午10:46:22 9 圓 10.0 10.0 2 2022/11/21 上午10:52:50 10 年利率 10.0 10.0 4 2022/11/21 上午11:44:05 11 選擇題 2.50 2.5 1 2022/11/21 下午9:24:41 102 102
  • 148. 1. 寫到我說停 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 1 2022/10/27 下午9:59:42 程式語言 程式碼 Python ''' 16_1.重複-警示值控制-寫到我說停(10.0) ''' i=int(input()) while(i!=-1): print("HaHaHa!") i=int(input())
  • 149. 2. 計算幾次 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 1 2022/10/27 下午10:01:41 程式語言 程式碼 Python ''' 16_2.重複-警示值控制-計算幾次(10.0) ''' a=0 i=int(input()) while(i!=-1): print("HaHaHa!") a=a+1 i=int(input()) print("{}".format(a))
  • 150. 3. 班級均分-直到我說停 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 1 2022/10/29 上午9:58:09 程式語言 程式碼 Python ''' 16_3.重複-警示值控制-班級均分-直到我說停(10.0) ''' i=int(input()) while(i!=-1): print("{}".format(i)) i=int(input())
  • 151. 4. 班級均分-到底迴圈幾次 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 2 2022/10/29 上午9:59:54 程式語言 程式碼 Python ''' 16_4.重複-警示值控制-班級均分-到底迴圈幾次(10.0) ''' a=0 i=int(input()) while(i!=-1): a=a+1 i=int(input()) print("{}".format(a))
  • 152. 5. 班級均分-總和 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 1 2022/11/21 上午10:34:52 程式語言 程式碼 Python ''' 16_5.重複-警示值控制-班級均分-總和(10.0) ''' p=int(input()) s=0 while(p!=-1): s=s+p p=int(input()) print("{}".format(s))
  • 153. 6. 班級均分-完成 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 3 2022/11/21 上午10:38:43 程式語言 程式碼 Python ''' 16_6.重複-警示值控制-班級均分-完成(10.0) ''' p=int(input()) s=0 i=0 while(p!=-1): s=s+p i=i+1 p=int(input()) print("{0:.2f}".format(s/i))
  • 154. 7. 判斷直到負分 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 1 2022/11/21 上午10:41:10 程式語言 程式碼 Python ''' 16_7.重複-警示值控制-判斷直到負分(10.0) ''' p=int(input()) while(p!=-1): if(p>=60): print("{}分及格".format(p)) p=int(input()) else: print("{}分不及格".format(p)) p=int(input())
  • 155. 8. 相反數絕對值 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 2 2022/11/21 上午10:46:22 程式語言 程式碼 Python ''' 16_8.重複-警示值控制-相反數絕對值(10.0) ''' a=int(input()) while(a!=0): if(a<0): print("{0}的相反數{1}".format(a,a*-1)) print("{0}的絕對值{1}".format(a,a*-1)) a=int(input()) else: print("{0}的相反數{1}".format(a,a*-1)) print("{0}的絕對值{0}".format(a)) a=int(input())
  • 156. 9. 圓 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 2 2022/11/21 上午10:52:50 程式語言 程式碼 Python ''' 16_9.重複-警示值控制-圓(10.0) ''' a=float(input()) while(a>0): b=a/(2*3.14) print("半徑{0:.2f}".format(b)) print("面積{0:.2f}".format(b*b*3.14)) a=float(input())
  • 157. 10. 年利率 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 4 2022/11/21 上午11:44:05 程式語言 程式碼 Python ''' 16_10.重複-警示值控制-年利率(10.0) ''' a=float(input()) b=float(input()) c=int(input()) while(a!=-1): print("{0:.2f}".format(a*b*c/365)) a=float(input()) b=float(input()) c=int(input())
  • 158. 11. 選擇題 (題目) 配分: 2.50 題型: 選擇-單選題
  • 159. 11. 選擇題 (答案) 最後一次判分時間: 2022/11/21 下午9:24:41 花費秒數: 37 判分次數: 1 # 得分 配分 你的答案 正確答案 0 2.5 2.5 D D 1 - - - D
  • 160. 參考資料 [17]for Page 160, 沈宏霖(30137)@科技應用專題三自 for(PDF) //www.18dice.tw/fs/materials/Python/111/C3-for.pdf for(影音) https://www.youtube.com/embed/0Ezg-UpAUH4 總結 [17]for Page 160, 沈宏霖(30137)@科技應用專題三自 # 名稱 配分 得分 次數 時間 1 1印到100 20.0 19.0 5 2022/11/25 下午9:43:15 2 1到100和 20.0 20.0 1 2022/11/21 上午11:46:51 3 奇數和 10.0 10.0 1 2022/11/21 上午11:47:55 4 偶數和 10.0 10.0 1 2022/11/21 上午11:48:52 5 1到N之和 10.0 10.0 1 2022/11/21 上午11:50:44 6 首末項 10.0 10.0 1 2022/12/5 上午10:43:14 7 等差級數 10.0 10.0 5 2022/11/25 下午9:41:47 8 10次判斷 10.0 10.0 2 2022/11/21 下午8:48:05 9 選擇題 7.50 7.5 2 2022/11/21 下午9:27:06 107 106
  • 161. 1. 1印到100 分數: 20.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 19.0 5 2022/11/25 下午9:43:15 程式語言 程式碼 Python ''' 17_1.for-1印到100(20.0) ''' for i in range(1,96,1): print("{}".format(i))
  • 162. 2. 1到100和 分數: 20.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 20.0 1 2022/11/21 上午11:46:51 程式語言 程式碼 Python ''' 17_2.for-1到100和(20.0) ''' s=0 for i in range(1,100+1,1): s=s+i print("{}".format(s))
  • 163. 3. 奇數和 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 1 2022/11/21 上午11:47:55 程式語言 程式碼 Python ''' 17_3.for-奇數和(10.0) ''' s=0 for i in range(1,99+2,2): s=s+i print("{}".format(s))
  • 164. 4. 偶數和 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 1 2022/11/21 上午11:48:52 程式語言 程式碼 Python ''' 17_4.for-偶數和(10.0) ''' s=0 for i in range(2,100+2,2): s=s+i print("{}".format(s))
  • 165. 5. 1到N之和 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 1 2022/11/21 上午11:50:44 程式語言 程式碼 Python ''' 17_5.for-1到N之和(10.0) ''' s=0 a=int(input()) for i in range(1,a+1,1): s=s+i print("{}".format(s))
  • 166. 6. 首末項 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 1 2022/12/5 上午10:43:14 程式語言 程式碼 Python ''' 17_6.for-首末項(10.0) ''' s=0 a=int(input()) b=int(input()) for i in range(a,b+1,1): s=s+i print(s)
  • 167. 7. 等差級數 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 5 2022/11/25 下午9:41:47 程式語言 程式碼 Python ''' 17_7.for-等差級數(10.0) ''' s=0 a=int(input()) b=int(input()) c=int(input()) for i in range(a,b,c): s=s+i print("{}".format(s))
  • 168. 8. 10次判斷 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 2 2022/11/21 下午8:48:05 程式語言 程式碼 Python ''' 17_8.for-10次判斷(10.0) ''' for i in range(1,10+1,1): a=int(input()) if(a>=60): print("{}分及格".format(a)) else: print("{}分不及格".format(a))
  • 169. 9. 選擇題 (題目) 配分: 7.50 題型: 選擇-單選題
  • 170. 9. 選擇題 (答案) 最後一次判分時間: 2022/11/21 下午9:27:06 花費秒數: 57 判分次數: 2 # 得分 配分 你的答案 正確答案 0 2.5 2.5 D D 1 2.5 2.5 B B 2 2.5 2.5 A A
  • 171. 參考資料 [20]自訂函式 Page 171, 沈宏霖(30137)@科技應用專題三自 自訂函式(PDF) //www.18dice.tw/fs/materials/Python/111/D1-自訂函式.pdf 函數呼叫(影音) https://www.youtube.com/embed/u9D8AKCJryI 總結 [20]自訂函式 Page 171, 沈宏霖(30137)@科技應用專題三自 # 名稱 配分 得分 次數 時間 1 相加 5.0 5.0 1 2022/12/5 上午10:45:16 2 Hello function 5.0 5.0 1 2022/12/5 上午10:45:58 3 Hello funtion 10次 5.0 5.0 1 2022/12/5 上午10:47:25 4 累加 5.0 5.0 1 2022/12/5 上午10:48:32 5 累加-梯形公式 5.0 5.0 1 2022/12/5 上午10:49:43 6 相加-累加 10.0 10.0 2 2022/12/5 上午10:52:25 7 圓柱體體積 10.0 10.0 2 2022/12/5 上午10:57:29 9 x的y次方 10.0 10.0 4 2022/12/13 下午8:03:30 10 無傳回值函數 10.0 2.916666348775228 7 2022/12/22 下午3:40:04 15 選擇題 7.50 7.5 2 2022/12/10 上午10:51:14 117 64
  • 172. 1. 相加 分數: 5.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 5.0 1 2022/12/5 上午10:45:16 程式語言 程式碼 Python ''' 20_1.自訂函式-相加(5.0) ''' def add(x,y): sum=x+y return sum x=int(input()) y=int(input()) print(add(x,y))
  • 173. 2. Hello function 分數: 5.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 5.0 1 2022/12/5 上午10:45:58 程式語言 程式碼 Python ''' 20_2.自訂函式-Hello function(5.0) ''' def hello(): print("Hello function") hello()
  • 174. 3. Hello funtion 10次 分數: 5.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 5.0 1 2022/12/5 上午10:47:25 程式語言 程式碼 Python ''' 20_3.自訂函式-Hello funtion 10次(5.0) ''' def hello(): print("Hello function") a=int(input()) for i in range(1,a+1,1): hello()
  • 175. 4. 累加 分數: 5.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 5.0 1 2022/12/5 上午10:48:32 程式語言 程式碼 Python ''' 20_4.自訂函式-累加(5.0) ''' def add(): sum=0 for i in range(1,101,1): sum=sum+i return sum print(add())
  • 176. 5. 累加-梯形公式 分數: 5.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 5.0 1 2022/12/5 上午10:49:43 程式語言 程式碼 Python ''' 20_5.自訂函式-累加-梯形公式(5.0) ''' def add(x): sum=int((1+x)*x/2) return sum x=int(input()) print(add(x))
  • 177. 6. 相加-累加 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 2 2022/12/5 上午10:52:25 程式語言 程式碼 Python ''' 20_6.自訂函式-相加-累加(10.0) ''' def add(): sum=0 for i in range(1,1+n,1): sum=sum+i return sum n=int(input()) print(add())
  • 178. 7. 圓柱體體積 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 2 2022/12/5 上午10:57:29 程式語言 程式碼 Python ''' 20_7.自訂函式-圓柱體體積(10.0) ''' def area3(r,h): area2=r*r*3.14 return area2*h r=3 volume=area3(r,10) print("半徑{}時的圓柱體體積: {}".format(r,volume)) r=3+2 volume=area3(r,10) print("半徑{}時的圓柱體體積: {}".format(r,volume))
  • 179. 9. x的y次方 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 4 2022/12/13 下午8:03:30 程式語言 程式碼 Python ''' 20_9.自訂函式-x的y次方(10.0) ''' def madepow(x,y): value =x for i in range(1,y): value=value*x return value x=int(input()) while (x!=0): y=int(input()) print(madepow(x,y)) x=int(input())
  • 180. 10. 無傳回值函數 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 2.916666348775228 7 2022/12/22 下午3:40:04 程式語言 程式碼 Python ''' 20_10.自訂函式-無傳回值函數(10.0) ''' def crazy(): print("為什麼需要副程式, 方便我瘋狂列印。") return crazy s=int(input()) for i in range(1,s+1,1): crazy()
  • 181. 15. 選擇題 (題目) 配分: 7.50 題型: 選擇-單選題
  • 182. 15. 選擇題 (答案) 最後一次判分時間: 2022/12/10 上午10:51:14 花費秒數: 91 判分次數: 2 # 得分 配分 你的答案 正確答案 0 2.5 2.5 A A 1 2.5 2.5 D D 2 2.5 2.5 C C
  • 183. 參考資料 [25]串列的一維陣列 Page 183, 沈宏霖(30137)@科技應用專題三自 串列的一維陣列(PDF) //www.18dice.tw/fs/materials/Python/111/E1-一維陣列.pdf 總結 [25]串列的一維陣列 Page 183, 沈宏霖(30137)@科技應用專題三自 # 名稱 配分 得分 次數 時間 1 印出動物元素 5.0 5.0 1 2022/12/13 下午7:31:39 2 動物串列 5.0 5.0 1 2022/12/13 下午7:34:10 3 食物元素 5.0 5.0 4 2023/1/9 下午10:12:54 4 食物列表 5.0 5.0 1 2022/12/13 下午7:39:38 5 交換資料 5.0 5.0 2 2022/12/13 下午7:53:06 6 統計資料 5.0 5.0 2 2022/12/13 下午7:47:07 7 人數判斷 5.0 5.0 1 2022/12/13 下午7:52:01 8 選擇題 5.00 5.0 2 2022/12/13 下午7:52:19 40 40
  • 184. 1. 印出動物元素 分數: 5.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 5.0 1 2022/12/13 下午7:31:39 程式語言 程式碼 Python ''' 25_1.串列的一維陣列-印出動物元素(5.0) ''' a=['長頸鹿','獅子','豹','鹿','熊','兔子','斑馬'] print(a) print(a[0]) print(a[1])
  • 185. 2. 動物串列 分數: 5.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 5.0 1 2022/12/13 下午7:34:10 程式語言 程式碼 Python ''' 25_2.串列的一維陣列-動物串列(5.0) ''' a=['長頸鹿','獅子','豹','鹿','熊','兔子','斑馬'] for i in range(0,7,1): print(a[i])
  • 186. 3. 食物元素 分數: 5.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 5.0 4 2023/1/9 下午10:12:54 程式語言 程式碼 Python ''' 25_3.串列的一維陣列-食物元素(5.0) ''' a=[90,91,92,93] print(a) print(a[0]) a[0]=95 print(a[0])
  • 187. 4. 食物列表 分數: 5.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 5.0 1 2022/12/13 下午7:39:38 程式語言 程式碼 Python ''' 25_4.串列的一維陣列-食物列表(5.0) ''' a=[90,91,92,93] for i in range(0,4,1): print(a[i])
  • 188. 5. 交換資料 分數: 5.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 5.0 2 2022/12/13 下午7:53:06 程式語言 程式碼 Python ''' 25_5.串列的一維陣列-交換資料(5.0) ''' a=[70,10,14,7,25,30,50] print(a) b=[70,14,10,7,25,30,50] print(b)
  • 189. 6. 統計資料 分數: 5.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 5.0 2 2022/12/13 下午7:47:07 程式語言 程式碼 Python ''' 25_6.串列的一維陣列-統計資料(5.0) ''' a=[70,14,10,7,25,30,50] print("星期日: {}人".format(a[0])) print("星期一: {}人".format(a[1])) print("星期二: {}人".format(a[2])) print("星期三: {}人".format(a[3])) print("星期四: {}人".format(a[4])) print("星期五: {}人".format(a[5])) print("星期六: {}人".format(a[6])) s=0 for i in range(0,7,1): s=s+a[i] print("總人數{}人".format(s))
  • 190. 7. 人數判斷 分數: 5.0 程式語言: {} 你的答案: 分數 判分次數 最後一次判分時間 5.0 1 2022/12/13 下午7:52:01 程式語言 程式碼 Python ''' 25_7.串列的一維陣列-人數判斷(5.0) ''' day=['日','一','二','三','四','五','六'] people=[70,14,10,7,25,30,50] for i in range(0,7,1): if(people[i]>=50): print("星期{} 人數爆棚!".format(day[i])) else: print("星期{} 需要繼續加油...".format(day[i]))
  • 191. 8. 選擇題 (題目) 配分: 5.00 題型: 選擇-單選題
  • 192. 8. 選擇題 (答案) 最後一次判分時間: 2022/12/13 下午7:52:19 花費秒數: 16 判分次數: 2 # 得分 配分 你的答案 正確答案 0 2.5 2.5 B B 1 2.5 2.5 A A
  • 193. 參考資料 [27]串列的建立 Page 193, 沈宏霖(30137)@科技應用專題三自 串列的概念(PDF) //www.18dice.tw/fs/materials/Python/111/F1-1串列的建立.pdf 串列的概念(影音) https://www.youtube.com/embed/cjKiOSnwSRc 總結 [27]串列的建立 Page 193, 沈宏霖(30137)@科技應用專題三自 # 名稱 配分 得分 次數 時間 1 串列的類型 10.0 9.75 7 2022/12/16 下午9:19:58 2 不同資料型態的串列 10.0 10.0 1 2022/12/16 下午9:25:40 3 串列的存取 10.0 10.0 1 2022/12/16 下午9:27:18 4 修改元素 10.0 3.5294117647058827 4 2022/12/16 下午9:36:35 8 隔號輸出 10.0 10.0 1 2022/12/16 下午9:41:55 11 選擇題 5.00 5.0 2 2023/1/9 下午10:12:03 105 47
  • 194. 1. 串列的類型 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 9.75 7 2022/12/16 下午9:19:58 程式語言 程式碼 Python ''' 27_1.串列的建立-串列的類型(10.0) ''' a1=[10,20,30,40] a2=['雞','鴨','鵝','鳥'] a3=['雞',20,True,2.5] print(a1) print(a2) print(a3) print(a3[1]) b3=['鴨',20,True,2.5] print(b3)
  • 195. 2. 不同資料型態的串列 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 1 2022/12/16 下午9:25:40 程式語言 程式碼 Python ''' 27_2.串列的建立-不同資料型態的串列(10.0) ''' a=[] a.append(input()) a.append(input()) a.append(input()) a.append(input()) a.append(input()) print(a) print(a[0]) print(a[1]) print(a[2]) print(a[3]) print(a[4]) print(a[3])
  • 196. 3. 串列的存取 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 1 2022/12/16 下午9:27:18 程式語言 程式碼 Python ''' 27_3.串列的建立-串列的存取(10.0) ''' a=[] for i in range(1,6+1,1): a.append(input()) print(a) for i in range(0,6,1): print(a[i])
  • 197. 4. 修改元素 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 3.5294117647058827 4 2022/12/16 下午9:36:35 程式語言 程式碼 Python ''' 27_4.串列的建立-修改元素(10.0) ''' a=[] for i in range(1,11,1): a.append(input()) for i in range(1,10,2): a[i]=a[i]+'*' print(a[i]) print("n") for i in range(0,10,1): print(a[i])
  • 198. 8. 隔號輸出 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 1 2022/12/16 下午9:41:55 程式語言 程式碼 Python ''' 27_8.串列的建立-隔號輸出(10.0) ''' a=[] for i in range(1,11,1): a.append(input()) b=[] for i in range(1,10,2): b.append(a[i]) print(b)
  • 199. 11. 選擇題 (題目) 配分: 5.00 題型: 選擇-單選題
  • 200. 11. 選擇題 (答案) 最後一次判分時間: 2023/1/9 下午10:12:03 花費秒數: 32 判分次數: 2 # 得分 配分 你的答案 正確答案 0 2.5 2.5 B B 1 2.5 2.5 D D
  • 201. 參考資料 [28]串列的使用 Page 201, 沈宏霖(30137)@科技應用專題三自 串列的使用(PDF) //www.18dice.tw/fs/materials/Python/111/F1-2串列的使用.pdf 串列的使用(影音) https://www.youtube.com/embed/_U7HrgCuqAQ 總結 [28]串列的使用 Page 201, 沈宏霖(30137)@科技應用專題三自 # 名稱 配分 得分 次數 時間 1 購物篇 20.0 12.0 1 2023/1/9 下午10:04:46 2 食物整理篇 20.0 20.0 1 2023/1/9 下午10:07:28 105 32
  • 202. 1. 購物篇 分數: 20.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 12.0 1 2023/1/9 下午10:04:46 程式語言 程式碼 Python ''' 28_1.串列的使用-購物篇(20.0) ''' buy=['蘋果','香蕉','櫻桃'] buy[1]='草莓' buy.append('橘子') print('香蕉'in buy) print('草莓'in buy) buy.insert(1,'芒果') print(len(buy)) print(buy)
  • 203. 2. 食物整理篇 分數: 20.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 20.0 1 2023/1/9 下午10:07:28 程式語言 程式碼 Python ''' 28_2.串列的使用-食物整理篇(20.0) ''' buy=['蘋果','芒果','草莓','櫻桃','橘子'] print(buy.pop()) del buy[0] print(buy[0]) buy.clear() print(buy)
  • 204. 參考資料 [29]元組 Page 204, 沈宏霖(30137)@科技應用專題三自 元組(PDF) //www.18dice.tw/fs/materials/Python/111/F2-元組.pdf 元組(影音) https://www.youtube.com/embed/3wf_yskEx5s 總結 [29]元組 Page 204, 沈宏霖(30137)@科技應用專題三自 # 名稱 配分 得分 次數 時間 4 選擇題 5.00 5.0 2 2023/1/16 下午9:23:32 20 5
  • 205. 4. 選擇題 (題目) 配分: 5.00 題型: 選擇-單選題
  • 206. 4. 選擇題 (答案) 最後一次判分時間: 2023/1/16 下午9:23:32 花費秒數: 28 判分次數: 2 # 得分 配分 你的答案 正確答案 0 2.5 2.5 B B 1 2.5 2.5 B B
  • 207. 參考資料 [30]集合 Page 207, 沈宏霖(30137)@科技應用專題三自 集合(PDF) //www.18dice.tw/fs/materials/Python/111/F3-集合.pdf 集合(影音) https://www.youtube.com/embed/AkFDQkPvxtI 總結 [30]集合 Page 207, 沈宏霖(30137)@科技應用專題三自 # 名稱 配分 得分 次數 時間 1 創建 5.0 5.0 2 2023/1/9 上午11:43:17 2 走訪 5.0 1.6666666666666665 1 2023/1/9 上午11:43:40 10 選擇題 7.50 7.5 2 2023/1/16 下午9:23:56 117 13
  • 208. 1. 創建 分數: 5.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 5.0 2 2023/1/9 上午11:43:17 程式語言 程式碼 Python ''' 30_1.集合-創建(5.0) ''' set1=set() print(set1) set2={1,2,3,4,5} print(set2) set3=set([i for i in range(20,30)]) print(set3) set4=set((10,20,30,40,50)) print(set4)
  • 209. 2. 走訪 分數: 5.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 1.6666666666666665 1 2023/1/9 上午11:43:40 程式語言 程式碼 Python ''' 30_2.集合-走訪(5.0) ''' set1={1,2,3,4,5,2022} print(set1)
  • 210. 10. 選擇題 (題目) 配分: 7.50 題型: 選擇-單選題
  • 211. 10. 選擇題 (答案) 最後一次判分時間: 2023/1/16 下午9:23:56 花費秒數: 16 判分次數: 2 # 得分 配分 你的答案 正確答案 0 2.5 2.5 C C 1 2.5 2.5 A A 2 2.5 2.5 D D
  • 212. 參考資料 [31]字典 Page 212, 沈宏霖(30137)@科技應用專題三自 字典(PDF) //www.18dice.tw/fs/materials/Python/111/F4-字典.pdf 字典(影音) https://www.youtube.com/embed/uBQS6v-_Umo 總結 [31]字典 Page 212, 沈宏霖(30137)@科技應用專題三自 # 名稱 配分 得分 次數 時間 1 水果字典 10.0 10.0 2 2023/1/16 下午9:52:36 2 玩玩水果字典 10.0 0.5027855932712555 1 2023/1/16 下午10:00:04 102 10
  • 213. 1. 水果字典 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 2 2023/1/16 下午9:52:36
  • 215. 2. 玩玩水果字典 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 0.5027855932712555 1 2023/1/16 下午10:00:04
  • 217. 1. 11172 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 0.0 1 2023/1/16 下午9:43:24
  • 218. 程式語言 程式碼 Python ''' 34_1.UVa-1-11172(10.0) ''' count=int(input()) a=int(input()) b=int(input()) for i in range(1,count+1,1): if(a%b==0): print("=") a=int(input()) b=int(input()) elif(a%b!=0 and a>b): print(">") a=int(input()) b=int(input()) elif(a%b!=0 and a<b): print("<") a=int(input()) b=int(input())
  • 219. 參考資料 [36]附錄A1-迴圈多多練習 Page 219, 沈宏霖(30137)@科技應用專題三自 - - 總結 [36]附錄A1-迴圈多多練習 Page 219, 沈宏霖(30137)@科技應用專題三自 # 名稱 配分 得分 次數 時間 2 草履蟲分裂 10.0 10.0 1 2023/1/16 下午9:28:10 3 彈珠分裝 10.0 8.75 4 2023/1/16 下午9:32:12 6 平年閏年 10.0 10.0 1 2023/1/16 下午9:39:14 100 28
  • 220. 2. 草履蟲分裂 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 1 2023/1/16 下午9:28:10 程式語言 程式碼 Python ''' 36_2.附錄A1-迴圈多多練習-草履蟲分裂(10.0) ''' a=int(input()) while(a!=-1): n=1 for i in range(1,a+1,1): n=n*2 print(n) a=int(input())
  • 221. 3. 彈珠分裝 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 8.75 4 2023/1/16 下午9:32:12 程式語言 程式碼 Python ''' 36_3.附錄A1-迴圈多多練習-彈珠分裝(10.0) ''' a=int(input()) while(a>=0): if(a%8==0): print("{}可分裝完畢".format(a)) a=int(input()) else: print("{}不可分裝完畢".format(a)) a=int(input())
  • 222. 6. 平年閏年 分數: 10.0 程式語言: c 你的答案: 分數 判分次數 最後一次判分時間 10.0 1 2023/1/16 下午9:39:14 程式語言 程式碼 Python ''' 36_6.附錄A1-迴圈多多練習-平年閏年(10.0) ''' year=int(input()) while(year!=0): if(year%4!=0): print("平年") year=int(input()) elif(year%4==0 and year%100!=0): print("閏年") year=int(input()) elif(year%100==0 and year%400!=0): print("平年") year=int(input()) elif(year%400==0): print("閏年") year=int(input())