print的格式问题 print ("{0:<10}{1:>5}".format(word, count))格式控制:{0:<10}表示word左对齐占10个位置{1:>5}表示count右对齐占5个位置其中<表示左对齐 python 2024-09-28 39 点赞 0 评论 59 浏览