string formatting

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

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