{"id":247699,"student_id":2589,"content":"#字典裡的串列\nuser = {\n 'name': 'Mitty',\n 'age': 20,\n 'scores': [99, 85, 93, 64, 79]\n}\n\ntotal = 0\nfor s in user['scores']:\n total += s\n\navg = s / len(user['scores']) #計算米提的平均分數\nprint(avg)","created_at":"2021-04-29T09:13:27.157+08:00","updated_at":"2021-04-29T09:15:39.266+08:00","name":"考前筆記_範例","language":"python","screenshot":{"url":"https://cdn6.koding.school/uploads/project/screenshot/247699/78c61e7f1ead7988a942b4dbd445e807.jpg"},"parent_id":247698,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":67,"hashid":"882sqerkj","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦