如何对字符串进行左, 右, 居中对齐str.ljust/rjust/center/format(s,'<20'/'>20'/'^20')
摘要:
如何对字符串进行左, 右, 居中对齐str.ljust/rjust/center/format(s,’<20’/’>20’/’^20’) 解决方案: 使用字符串的str.ljust() str.rjust() str.center() 使用format() 传递类似’<20’,’>20’,’^20’ 阅读全文
posted @ 2018-08-06 10:37 i小怪 阅读(435) 评论(0) 推荐(0)
浙公网安备 33010602011771号