print ("{0:<10}{1:>5}".format(word, count)) 格式控制: {0:<10}表示word左对齐占10个位置{1:>5}表示count右对齐占5个位置 其中<表示左对齐