for循环打印金字塔

for i in range(1, 10, 2):
print('{0:^9}'.format('*' * i))

 

posted @ 2020-07-08 16:18  阿伟啊啊啊啊  阅读(1158)  评论(0编辑  收藏  举报