CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
jackfrued

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: jackfrued/Python-100-Days
Path: blob/master/Day01-15/code/Day07/marquee.py
Views: 729
1
"""
2
输入学生考试成绩计算平均分
3
4
Version: 0.1
5
Author: 骆昊
6
Date: 2018-03-06
7
"""
8
9
import os
10
import time
11
12
13
def main():
14
str = 'Welcome to 1000 Phone Chengdu Campus '
15
while True:
16
print(str)
17
time.sleep(0.2)
18
str = str[1:] + str[0:1]
19
# for Windows use os.system('cls') instead
20
os.system('clear')
21
22
23
if __name__ == '__main__':
24
main()
25
26