Python控制台输出不换行(进度条等)

sys.stdout.write('\r'+str)
sys.stdout.flush()
time.sleep(1)
posted @ 2016-03-23 18:11  龟窝  阅读(1070)  评论(0编辑  收藏  举报