# 实现输入几行就打印几行菱形
row = int(input('请输入打印几行*'))
for i in range(row):
for j in range(row - i - 1):
print("", end=" ")
for j in range(2 * i + 1):
print('*', end='')
print()
# # 打印4行菱形 range(5):不包括第五行
for i in range(5):
for j in range(i):
print('*', end=' ')
print()