"함수 center()"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-source +syntaxhighlight))
5번째 줄: 5번째 줄:
==Python==
==Python==
[[category: Python]]
[[category: Python]]
<source lang='Python'>
<syntaxhighlight lang='Python'>
values = (1, 42, 1004, 'abc', 'hello')
values = (1, 42, 1004, 'abc', 'hello')
for value in values:
for value in values:
16번째 줄: 16번째 줄:
hello  
hello  
'''
'''
</source>
</syntaxhighlight>


==같이 보기==
==같이 보기==
*[[rjust]]
*[[rjust]]
*[[zfill]]
*[[zfill]]

2020년 11월 2일 (월) 02:32 판

  다른 뜻에 대해서는 HTML center 태그 문서를 참조하십시오.
center

1 Python

values = (1, 42, 1004, 'abc', 'hello')
for value in values:
    print( str(value).center(6) )
'''
  1   
  42  
 1004 
 abc  
hello 
'''

2 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}