python中print的几种用法

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())
posted @ 2013-07-18 16:33  muzizongheng  阅读(2361)  评论(0编辑  收藏  举报
如果我们时时忙着展现自己的知识, 将何从忆起成长所需的无知?