程式實例 ch7_9.ipynb:輸入一個正整數 n,這個程式會列出從 1 加到 n 的總和。執行結果 7-2-5 串列生成(list generator)的應用生成式(generator)是一種使用迭代方式產生 ...
確定! 回上一頁