0
点赞
收藏
分享

微信扫一扫

20240906_150054 python 内容对齐方式 format

捌柒陆壹 2024-09-06 阅读 17

format左右中对齐

让数据左对齐

"{:!<30}".format(数据)

让数据右对齐

"{:!>30}".format(数据)

让数据居中对齐

"{:!^30}".format(数据)
举报

相关推荐

0 条评论