mirror of
http://shenjack.top:5100/shenjack/icalingua-python-bot.git
synced 2024-11-23 12:41:05 +08:00
修复一下低版本兼容性
This commit is contained in:
parent
13995d2915
commit
0ee8091e0d
|
@ -20,7 +20,8 @@ def local_env_info() -> str:
|
||||||
# 参考 DR 的 (crash report)
|
# 参考 DR 的 (crash report)
|
||||||
cache.write(f"系统: {platform.platform()}\n")
|
cache.write(f"系统: {platform.platform()}\n")
|
||||||
# 处理器
|
# 处理器
|
||||||
cache.write(f"{"|".join([f"{x}%" for x in psutil.cpu_percent(interval=1, percpu=True)])}\n")
|
cache.write("|".join([f"{x}%" for x in psutil.cpu_percent(interval=1, percpu=True)]))
|
||||||
|
cache.write("\n")
|
||||||
# Python 版本信息
|
# Python 版本信息
|
||||||
cache.write(f"{platform.python_implementation()}: {platform.python_version()}-{platform.python_branch()}({platform.python_compiler()})\n")
|
cache.write(f"{platform.python_implementation()}: {platform.python_version()}-{platform.python_branch()}({platform.python_compiler()})\n")
|
||||||
# 内存信息
|
# 内存信息
|
||||||
|
|
Loading…
Reference in New Issue
Block a user