Pythonの文字列操作文字列操作用のPython

Pythonの文字列操作

文字列のパディング:

s.center(10、+)
s.ljust(10、+)
s.rjust(10、+)

  

 

おすすめ

転載: www.cnblogs.com/iupoint/p/11606866.html