StarDemo
i=1
while i<5:
j=1
while j<=8-2*i:
print(" ",end='')
j+=1
j=1
while j<=4*i-3:
print("*",end='')
j+=1
print("\n")
i+=1
i=1
while i<4:
j=1
while j<=2*i:
print(" ",end='')
j+=1
j=1
while j<=13-4*i:
print("*",end='')
j+=1
print("\n")
i+=1
网友评论