marquee.py 396 B

123456789101112131415161718192021222324
  1. """
  2. 输入学生考试成绩计算平均分
  3. Version: 0.1
  4. Author: 骆昊
  5. Date: 2018-03-06
  6. """
  7. import os
  8. import time
  9. def main():
  10. str = 'Welcome to 1000 Phone Chengdu Campus '
  11. while True:
  12. print(str)
  13. time.sleep(0.2)
  14. str = str[1:] + str[0:1]
  15. # for Windows use os.system('cls') instead
  16. os.system('clear')
  17. if __name__ == '__main__':
  18. main()