admin管理员组

文章数量:1570425

#-*- coding: utf-8 -*-
#code:myhaspl@qq
#12-1.py
import sys
reload(sys)
sys.setdefaultencoding("gbk")


import sys,time
def print_one_by_one(text):
    sys.stdout.write("\r " + " " * 60 + "\r") # /r 光标回到行首
    sys.stdout.flush() #把缓冲区全部输出
    #print text
    for c in text:
        sys.stdout.write(c)
        sys.stdout.flush()
        time.sleep(0.1)
        
print_one_by_one("解放军空军2月7日在官方微博发布消息称")

本文标签: 一行字屏幕上Python