print('Python and %s are number %d' % ('Django', foo)) 转载于:https://www.cnblogs.com/henyihanwobushi/archive/2012/08/29/2662409.html