python에서 sprintf 처럼 사용하는 방법Python2013. 4. 10. 10:18
Table of Contents
반응형
찾아가면서 공부하려니..간단한것도 막힌다..
출처: http://www.johnkerl.org/python/sprintf.html
#!/usr/bin/python -Wall # ================================================================ # John Kerl # kerl.john.r@gmail.com # 2007-05-15 # ================================================================ print "Here %s the number: %d" % ("is", 37) s = "Here %s the number: %d" % ("is", 37)
print s
반응형
'Python' 카테고리의 다른 글
Python으로 MSSQL 에서 데이터 가져오기( Ubuntu Linux 14.04) (0) | 2015.11.04 |
---|---|
OpenWeatherMap의 JSON 데이터를 Python으로 파싱하기 (1) | 2015.04.23 |
Python으로 mssql 에서 데이터 가져오기 (0) | 2013.04.08 |