使用#号输出图形,可以指定宽和高

height = int(input("Height = :"))
width = int(input("Width = :"))

num_higth = 1
while num_higth <= height:
num_width = 1
while num_width <= width:
print("#",end="")
num_width = num_width + 1
print("")
num_higth = num_higth + 1
posted @ 2018-05-22 21:35  不解释丨Python  阅读(206)  评论(0编辑  收藏  举报