打印菱形

for i in range (10):
	if i<= 5:
		print(i * "*")
	else:
		print((10-i) * "*")

 

posted @ 2021-03-02 12:13  火烧火燎  阅读(26)  评论(0)    收藏  举报