Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- plugin
- JavaScript
- tomcat
- NPM
- hadoop
- 보조정렬
- GIT
- table
- Spring
- Android
- SSL
- Java
- react
- SQL
- SPC
- Sqoop
- Express
- window
- MSSQL
- mybatis
- Python
- Eclipse
- 공정능력
- xPlatform
- es6
- vaadin
- mapreduce
- Kotlin
- IntelliJ
- R
Archives
- Today
- Total
DBILITY
python string placeholder? formatting 본문
반응형
가장 편한 것은 3.6이상에서 지원하는 세번째겠다.
>>> name = 'bean'
>>> print('My Name is %s'%name)
My Name is bean
>>> print('My Name is {}'.format(name))
My Name is bean
#3.6 over
>>> print(f'My Name is {name}')
My Name is bean
반응형
'python' 카테고리의 다른 글
| python multi-threading ( 멀티쓰레드 ) (0) | 2021.08.17 |
|---|---|
| python deal with time ( 시간 다루기 ) (0) | 2021.08.17 |
| python lottery number generation exercise ( 로또 번호 생성) (0) | 2021.08.13 |
| python html parse and image file save (0) | 2021.08.13 |
| python archive file 다루기 (0) | 2021.08.12 |
Comments
