在python中用while語句打印出倒三角形?
#打印倒立的正三角形hang = int(input("請輸入行數:"))y = 1while y = 0:print("* ",end="")x -= 1print()y += 1print("圖形打印完成!")
在python中用while語句打印出倒三角形?
#打印倒立的正三角形hang = int(input("請輸入行數:"))y = 1while y = 0:print("* ",end="")x -= 1print()y += 1print("圖形打印完成!")