添加通用工具函数包

This commit is contained in:
San Liy 2023-12-19 00:09:54 +08:00
parent c3c7d1cbfc
commit c950460235

7
unit.py Normal file
View File

@ -0,0 +1,7 @@
from typing import Any
from sanic.log import Colors
def sio_log_format(text: str, data: Any):
return f"{Colors.GREEN}{text} {Colors.PURPLE}{data}{Colors.END}"