在 main.py 中更新系统名称为 'macOS Sonoma 14.6',简化系统信息显示

This commit is contained in:
2025-04-10 07:20:39 +08:00
Unverified
parent 948302a5e6
commit 97eb1d992a

View File

@@ -37,7 +37,7 @@ def pseudo_zsh():
os.system("clear") # 清屏
# 显示系统信息
system_name = get_simple_system_info().split()[0]
system_name = 'macOS Sonoma 14.6'
system_version = platform.version()
architecture = platform.architecture()[0]
hostname = platform.node()
@@ -65,7 +65,7 @@ def pseudo_zsh():
used_disk = round(disk.used / (1024 ** 3), 2)
disk_usage = disk.percent
print(f"系统: {system_name} {system_version} ({architecture})")
print(f"系统: {system_name}")
print(f"主机名: {hostname}")
print(f"用户: {username}")
print(f"IP 地址: {ip_address}")