함수 center()

Jmnote (토론 | 기여)님의 2014년 8월 21일 (목) 16:04 판 (새 문서: category: String ;center ==Python== category: Python <source lang='Python'> values = (1, 42, 1004, 'abc', 'hello') for value in values: print( str(value).center(6) ) ''' ...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)
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 }}