例使用巢狀迴圈,以金字塔式逐列顯示A字元。(檔名:nest_2.py ) 01 row = 6 02 a=1 03 while row > 0: 04 for i in range(row,0,-1): 05 print(' ', end='') 06 for j in ...
確定! 回上一頁