标签:nbsp xrange python bsp div img string .com str
1 import string
2 for x in xrange(1,10):
3 for y in xrange(1,x+1):
4 print string.ljust("%d*%d = " %(y,x) + str(y*x), 10),
5 print
输出结果:
标签:nbsp xrange python bsp div img string .com str
原文地址:http://www.cnblogs.com/heram/p/6081891.html