运用for循环 来完成菱形的输出
for i in range (6):
for a in range(5-i):
print(end=' ')
for j in range(2*i-1):
print('*',end='')
print()
for i in range (5):
for a in range(i+1):
print(end=' ')
for j in range(7-2*i):
print('*',end='')
print()