使用#号输出图形,可以指定宽和高
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
 
                     
                    
                 
                    
                
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号