mirror of
https://github.com/0-8-4/miui-auto-tasks.git
synced 2024-11-24 17:19:41 +00:00
684e384249
* chore: 支持环境变量设置配置文件路径 * chore: 未获取TOKEN时继续运行,不进行每日签到 * chore: 验证码模块支持自定义参数 * use pipreqs * chore: 自动生成requirement * Update up_requirement.yml * Update docker-image.yml * chore: 添加Magisk模块 * Delete miui_sign-1.7.1.zip
36 lines
1.4 KiB
Python
36 lines
1.4 KiB
Python
'''
|
||
Date: 2023-11-13 20:29:19
|
||
LastEditors: Night-stars-1 nujj1042633805@gmail.com
|
||
LastEditTime: 2023-11-14 21:13:35
|
||
'''
|
||
import platform
|
||
from urllib.request import getproxies
|
||
from utils.logger import log
|
||
|
||
|
||
def print_info():
|
||
log.info("MIUI-AUTO-TASK v1.7.1")
|
||
log.info('---------- 系统信息 -------------')
|
||
system_info()
|
||
log.info('---------- 项目信息 -------------')
|
||
log.info("这是一个免费且开源的项目,如果你是付费购买获得请务必退款")
|
||
log.info("项目地址:https://github.com/0-8-4/miui-auto-tasks")
|
||
log.info("欢迎 star,感谢所有项目贡献者,已经提交issues的人,帮助项目发展的人")
|
||
log.info('---------- 脚本日志 -------------')
|
||
|
||
|
||
def system_info():
|
||
log.info(show_info('操作系统平台', platform.platform()))
|
||
log.info(show_info('操作系统版本', platform.version()))
|
||
log.info(show_info('操作系统名称', platform.system()))
|
||
log.info(show_info('操作系统位元', platform.architecture()))
|
||
log.info(show_info('操作系统类型', platform.machine()))
|
||
log.info(show_info('处理器信息', platform.processor()))
|
||
log.info(show_info('Python 版本', str(platform.python_version()) + ' ' + str(platform.python_build())))
|
||
if getproxies():
|
||
log.info(show_info('系统代理', getproxies()))
|
||
|
||
|
||
def show_info(tip, info):
|
||
return "{}: {}".format(tip, info)
|