Python-100-Days/Day01-15/code/Day07/marquee.py

25 lines
396 B
Python
Raw Normal View History

2018-04-27 00:00:22 +08:00
"""
输入学生考试成绩计算平均分
Version: 0.1
Author: 骆昊
Date: 2018-03-06
"""
import os
import time
def main():
2019-05-03 21:17:36 +08:00
str = 'Welcome to 1000 Phone Chengdu Campus '
while True:
print(str)
time.sleep(0.2)
str = str[1:] + str[0:1]
# for Windows use os.system('cls') instead
os.system('clear')
2018-04-27 00:00:22 +08:00
if __name__ == '__main__':
2019-05-03 21:17:36 +08:00
main()