标签:log bsp blog pytho nbsp highlight logs python 推导
print(‘\n‘.join([‘ ‘.join([‘%s*%s=%s‘%(x,y,x*y) for x in range(1,y+1)]) for y in range(1,10)]))
9*9,join & 列表推导式
原文地址:http://www.cnblogs.com/UncleYong/p/6956428.html