Python ❀ 打印菱形

打印菱形 ''' * 1 3 1 *** 2 2 3 ***** 3 1 5 ******* 4 0 7 ***** 5 1 5 *** 6 2 3 * 7 3 1 ''' a = int(input("請輸入奇數行數:")) if a % 2 == 0: print("輸入數字錯誤!") a = int(input("請從新輸入奇數行數:
相關文章
相關標籤/搜索