fix cls not exist on mac

This commit is contained in:
annidyfeng 2023-12-29 17:04:05 +08:00
parent 25a1af42fc
commit e3e021c014

View File

@ -88,7 +88,10 @@ def display_info():
while True:
try:
time.sleep(5)
os.system("cls")
if os.name == 'nt':
os.system("cls")
elif os.name == 'posix':
os.system("clear")
print(f"\r共监测{monitoring}个直播中", end=" | ")
print(f"同一时间访问网络的线程数: {max_request}", end=" | ")
if len(video_save_path) > 0: