
1 cj1324 Jul 9, 2014 直接用import sys; sys.stdout ? |
2 pinepara Jul 9, 2014 |
3 Ansen Jul 9, 2014 为啥 我这里是按顺序执行的 |
4 hhrmatata OP |
5 pinepara Jul 9, 2014 |
7 wy315700 Jul 9, 2014 终端的输出刷新是按行来的,除非手动调用flush |
9 shyrock Jul 9, 2014 python2.7.6 执行是对的啊。。。 hehe ... finish! [Finished in 5.1s] |
10 Ever Jul 9, 2014 不用return就是return None python3可以prnt(word, end="") python2.7可以from __future__ import print_function后照python3的做 |
12 cakegg Jul 9, 2014 import sys import time print "hello", stdout_temp = sys.stdout time.sleep(5) sys.stdout = stdout_temp print "finish" 其实像上面这样写就可以了... |