它是一個字符串格式化語法(它從C借用)。
請參閱

編輯:
name = raw_input("who are you?")
print "hello %s" % (name,)
該
只是為了幫助您更多,以下是您如何在一個字符串中使用多種格式
"Hello %s, my name is %s" % ('john', 'mike') # Hello john, my name is mike".
如果您使用int而不是字符串,請使用%d而不是%s。
"My name is %s and i'm %d" % ('john', 12) #My name is john and i'm 12
