Format

[Python] 다양한 문자 포멧팅 방법 [ 기준 : Python 2.7 ] 1. var = '%(foo)s %(foo)s %(foo)s' % { 'foo': 'look_at_me_three_times' } 2. var = '{0} {0} {0}'.format('look_at_meeee') 3. var = '{foo} {foo} {foo}'.format(foo = 'python you so crazy') [참고] https://stackoverflow.com/questions/6982949/output-formatting-in-python-replacing-several-s-with-the-same-variable
S0PH1A
'Format' 태그의 글 목록