diff --git a/Day01-15/code/Day07/marquee.py b/Day01-15/code/Day07/marquee.py index 9d6f546..8c2c4a6 100644 --- a/Day01-15/code/Day07/marquee.py +++ b/Day01-15/code/Day07/marquee.py @@ -1,5 +1,5 @@ """ -输入学生考试成绩计算平均分 +滚动弹幕 Version: 0.1 Author: 骆昊 @@ -12,12 +12,16 @@ import time def main(): str = 'Welcome to 1000 Phone Chengdu Campus ' + counter = 0 while True: print(str) + counter += 1 time.sleep(0.2) str = str[1:] + str[0:1] # for Windows use os.system('cls') instead os.system('clear') + if counter == 100: + break if __name__ == '__main__':