标签:
chang = int(input("请输入长: "))
gao = int(input("请输入高: "))
i = 0while i < gao:j = 0while j < chang:if i == 0:
print("#",end="")elif i == gao-1:print("#", end="")else:
if j ==0:
print("#",end="")elif j == chang-1:print("#", end="")else:
print(‘ ‘,end="")j+=1print(‘‘)
i += 1
标签:
原文地址:http://www.cnblogs.com/hellojesson/p/5828469.html