默认是右对齐,为什么要加上>才能右对齐呢?
for i in range(1, 10):
s = ""
for j in range(i, 10):
s += "{}*{}={:2} ".format(i, j, i*j)
print(("{:63}".format(s)).rstrip())
for i in range(1, 10):
s = ""
for j in range(i, 10):
s += "{}*{}={:2} ".format(i, j, i*j)
print(("{:>63}".format(s)).rstrip())