print('input number of lines:')
n=int(input())
for i in range(1,n+1):
l1=list('*'*i)
x=' '*((n-i))+' '.join(l1)
print(x)作者: 376909437 时间: 2017-7-21 17:22
n=input()
for i in range(0,n+1):
for j in range(0,n-i):
print"",
for k in range(0,i):
print"*",
print