用Python写的九九乘法表

x = 1

while x < 10:
	y = 1
	while y <= x:
		print(' {} * {} = {}'.format(y,x,y*x),end='')
		y += 1
	print()
	x += 1

 还有更简单的写法吗?

posted @ 2019-10-14 13:01  不很胖的胖子  阅读(120)  评论(0)    收藏  举报