python中的print有几种常用的用法:
1. print("first example")
2. print("second", "example")
3. print("%s"%("third example"))
4. print("%(forth)s"%{'forth':'forth example'})
5.
fifth = "fifth example"
print("%(fifth)s"%vars())
转载于:https://blog.51cto.com/muzizongheng/1332962