>>
for i in range(9): print("* " * 9)
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
stars = "* " empty = " " print(stars * 9) for n in range(7): print(stars + empty * 7 + stars) print(stars * 9)
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * >>
Python-打印图形-方形
原文:https://www.cnblogs.com/a001ai-es/p/13032678.html