By {} and Format ":"% instead.
Format before and after the mapping relationship
by location
keyword
By subscript
format specifier:
placed inside the {}
Among English simultaneous lead to uneven how to do, with spaces *
such as: "{0:^10}\t{1:{3}^10}\t{2:^10}".format(u[0],u[1],u[2],chr(12288))
use format template:
tplt = "{0:^10}\t{1:{3}^10}\t{2:^10}"
print(tplt.format("排名","学校名称","总分",chr(12288)))