import sys,time#調用sys模塊,time模塊
for i in range(20):#循環20次
sys.stdout.write('\033[41;1m.\033[0m')#背景色為紅色的點
sys.stdout.flush()#邊輸出邊刷新
time.sleep(0.1)#刷新時間0.1秒
import sys,time#調用sys模塊,time模塊
for i in range(20):#循環20次
sys.stdout.write('\033[41;1m.\033[0m')#背景色為紅色的點
sys.stdout.flush()#邊輸出邊刷新
time.sleep(0.1)#刷新時間0.1秒
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。