Python 문자열 format()

1 개요[ | ]

Python 문자열 format()

2 예제[ | ]

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

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

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

4 같이 보기[ | ]