看板 Python 關於我們 聯絡資訊
本肥非本科系,買了二手課本自學,寫習題,但看不懂第七題中文, "替該list搭配上連 續的整數配對" https://i.imgur.com/AMxku1P.jpg 它是要我把list配成dict嗎? -- Sent from PTTopia -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 118.160.122.69 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Python/M.1580486135.A.ECB.html ※ 編輯: a9202507 (118.160.122.69 臺灣), 01/31/2020 23:56:08 ※ 編輯: a9202507 (118.160.122.69 臺灣), 01/31/2020 23:56:38
andy19960407: 我猜enumerate哈哈02/01 00:11
cuteSquirrel: 從語意上推敲像是這樣02/01 00:30
cuteSquirrel: https://onlinegdb.com/HyGZLAZz802/01 00:31
cuteSquirrel: https://imgur.com/a/fgjUXPB02/01 00:33
看來是enumerate 感謝各位。 ※ 編輯: a9202507 (36.225.108.153 臺灣), 02/09/2020 23:33:22
cuteSquirrel: Welcome~ 02/13 19:07