N = int(input("請輸入陣列大小:")). #輸入數字並存入陣列 ... 在Python只要一行就可以了。 即a , b = b , a ... 在Python中我們仍用pop方法來取出資料,只是從陣.
確定! 回上一頁