{"id":250157,"student_id":10,"content":"arr = ['221', '5', '123', '1111', '9']\nresult = []\n\n\nfor j in range(len(arr)):\n \n best = -1 #目前找到最小的元素的加總值\n bestIndex = -1 #目前找到最小的元素的編號\n \n for i in range(len(arr)):\n item = arr[i]\n total = 0\n \n # for t in item: total += int(t)\n\n # if total \u003c best or best == -1:\n # best = total #加總的數值\n # bestIndex = i #編號位置\n \n # result.append(arr[bestIndex])\n # arr.pop(bestIndex) #移除\n\n# print(result)\n","created_at":"2021-05-07T00:29:38.654+08:00","updated_at":"2021-05-07T11:53:06.476+08:00","name":"數字總和排序","language":"python","screenshot":{"url":"https://cdn9.koding.school/uploads/project/screenshot/250157/78c61e7f1ead7988a942b4dbd445e807.jpg"},"parent_id":250156,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":199,"hashid":"vngsy9wvv","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":4708390,"file_name":"cloud.png","project_id":250157,"asset_id":302343,"created_at":"2021-05-07T00:29:38.659+08:00","updated_at":"2021-05-07T00:29:38.659+08:00"},{"id":4708391,"file_name":"bg.jpg","project_id":250157,"asset_id":302344,"created_at":"2021-05-07T00:29:38.661+08:00","updated_at":"2021-05-07T00:29:38.661+08:00"},{"id":4708392,"file_name":"calm.mp3","project_id":250157,"asset_id":302345,"created_at":"2021-05-07T00:29:38.661+08:00","updated_at":"2021-05-07T00:29:38.661+08:00"},{"id":4708393,"file_name":"koding.png","project_id":250157,"asset_id":302346,"created_at":"2021-05-07T00:29:38.662+08:00","updated_at":"2021-05-07T00:29:38.662+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦