# 输入矩形的宽度和高度width=int(input("请输入矩形的宽度:"))height=int(input("请输入矩形的高度:"))# 输出空心矩形foriinrange(height):forjinrange(width):ifi==0ori==height-1orj==0orj==width-1:print("*",end="")else:print(" ",end="")print() 1. 2. 3. 4. 5. 6. 7. 8. 9....