
云计算开发:Python3-rjust()方法详解
描述 rjust() 返回一个原字符串右对齐,并使用空格填充至长度 width 的新字符串。如果指定的长度小于字符串的长度则返回原字符串。 语法 以下是 rjust() 方法语法: str.rjust(width[, fillchar]) ...
描述 rjust() 返回一个原字符串右对齐,并使用空格填充至长度 width 的新字符串。如果指定的长度小于字符串的长度则返回原字符串。 语法 以下是 rjust() 方法语法: str.rjust(width[, fillchar]) ...