-
[python] string centerPrograming/Python 2019. 5. 9. 14:23
https://www.programiz.com/python-programming/methods/string/center
Python String center() - Python Standard Library
www.programiz.com
string object 의 내용을 전달받는 width의 중간 자리에 위치하도록 배치하는 함수입니다.
이때 padding 값을 통해 나머지 부분을 채워 놓을 수도 있습니다.
포맷 :
str.center(width, padding = '')
'Programing > Python' 카테고리의 다른 글
itertools (0) 2019.06.06 print each element in a list (0) 2019.06.06 [python] tuples (0) 2019.04.26 [django] Error: 'static', expected 'endblock'. Did you forget to register or load this tag (0) 2019.04.15 [django] template 상속 (0) 2019.04.11