#28735: Python 解答


oxxostudio (oxxo.studio)


使用生成式將輸入的文字轉換成數字串列,
使用 [1:] 取出第二個以後的所有項目成為新串列,
再使用 sum() 搭配算術運算子,就能求出平均值,最後使用 if 判斷輸出。

解答:https://steam.oxxostudio.tw/category/python/zerojudge/a148.html