尤其是迴圈最常使用,range 函式的功能就是建立整數循序串列。 range 函式的語法有 ... 若要顯示 r1,需將其轉換為串列: print(list(r1)) #[0,1,2,3,4] range 函式包含 2 ...
確定! 回上一頁