From 0767f79a196e468a2b999dcd9524ac88330ffbc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=85=89-k?= <36470587+kxgx@users.noreply.github.com> Date: Wed, 8 Jan 2025 01:43:38 +0800 Subject: [PATCH] Update main.py --- bin/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/main.py b/bin/main.py index 5e2f96d..4c87072 100644 --- a/bin/main.py +++ b/bin/main.py @@ -77,13 +77,13 @@ def power_battery(): # 检查电量信息 if not battery_percentage: - return "电量信息无效" + return "无效" # 返回电量百分比 return f"{int(battery_percentage)}%" except Exception as e: # 返回错误信息 - return "获取电量失败" + return "失败" # 打印电量信息 print(power_battery())