如题,上代码:
for x in range(1,5):#总共四行
for y in range(1,x):#打印一行后打印空格
print " ",
for z in range(1,6):#列数是五列
print "*",
print "\n",
* * * * *
* * * * *
* * * * *
* * * * *
如题,上代码:
for x in range(1,5):#总共四行
for y in range(1,x):#打印一行后打印空格
print " ",
for z in range(1,6):#列数是五列
print "*",
print "\n",
* * * * *
* * * * *
* * * * *
* * * * *