n = input("請輸入能n的值:")# python中由input得到的值, 都是str類型, for/in循環時# , 必須將n轉換為int()類型, 否則報錯TypeError: 'str' object ...
確定! 回上一頁