慕丝7291255
为了使表格更美观,请使用表格模块:这里举一个例子:>>> from tabulate import tabulate>>> table = [["Sun",696000,1989100000],["Earth",6371,5973.6],... ["Moon",1737,73.5],["Mars",3390,641.85]]>>> print tabulate(table)----- ------ -------------Sun 696000 1.9891e+09Earth 6371 5973.6Moon 1737 73.5Mars 3390 641.85----- ------ -------------