Python 문자열 format()

1 개요[ | ]

Python 문자열 format()

2 예제[ | ]

print("a","b","c","d","e")
print("{} {} {} {} {}".format("a","b","c","d","e"))

3 {자료형}.format(인수)[ | ]

age=2; name = 'ZETAWIKI'
print("The {0} is {1} years old.".format(name,age))

4 같이 보기[ | ]

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