python 输出六行星号✳

for i in range(1,6):
    for j in range(5-i):
        print(" ",end=" ")
    for j in range(1,2*i):
        print("*",end=" ")
    print("\n")

  

posted @ 2019-09-30 00:41  从前有座山,山上  阅读(1153)  评论(0编辑  收藏  举报