修复部分linux获取发行版错误的问题

This commit is contained in:
远野千束 2024-10-06 04:36:54 +08:00
parent 9160e7c4b4
commit ce3a07e350

View File

@ -26,6 +26,8 @@ except FileNotFoundError:
os_name = platform.system() os_name = platform.system()
os_version = platform.release() os_version = platform.release()
print("Current OS:", os_name, os_version)
def log(*args): def log(*args):
# 在输出前加上时间 # 在输出前加上时间