在 main.py 中更新系统名称为 'macOS Sonoma 14.6',简化系统信息显示
This commit is contained in:
4
main.py
4
main.py
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user