powered by
str
width
pystr_center(str, width, fillchar = " ")
fillchar
nchar(str)
pystr_ljust
pystr_rjust
pystr_center("center me", 15) pystr_center("center me", 15, "*")
Run the code above in your browser using DataLab