1 개요[ | ]
- Python 문자열 format()
2 예제[ | ]
Python
CPU
0.0s
MEM
8M
0.1s
Copy
print("a","b","c","d","e")
print("{} {} {} {} {}".format("a","b","c","d","e"))
a b c d e a b c d e
3 {자료형}.format(인수)[ | ]
Python
CPU
0.0s
MEM
8M
0.0s
Copy
age=2; name = 'ZETAWIKI'
print("The {0} is {1} years old.".format(name,age))
The ZETAWIKI is 2 years old.
4 같이 보기[ | ]
편집자 에어컨 Jmnote
로그인하시면 댓글을 쓸 수 있습니다.