Getting Started with Python. Formatting Strings

print '{0} is {1}:{2}'.format('123',1,3)



str='dick'
score=80
print '%s score is %d'%(str,score)

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327038705&siteId=291194637