string formatting

print('Python and %s are number %d' % ('Django', foo))

posted on 2012-08-29 17:15  很遗憾我不是  阅读(197)  评论(0编辑  收藏  举报