gitea_push2qq/unit.py

19 lines
378 B
Python
Raw Normal View History

2023-12-19 00:09:54 +08:00
from typing import Any
from sanic.log import Colors
2023-12-20 04:52:01 +08:00
def sio_log_format(text: str, data: Any = ''):
2023-12-19 00:09:54 +08:00
return f"{Colors.GREEN}{text} {Colors.PURPLE}{data}{Colors.END}"
2023-12-20 04:52:01 +08:00
def cas_log_fmt(text: str, data: Any = ''):
return f'{Colors.YELLOW}{text} {Colors.PURPLE}{data}{Colors.END}'
def int2str(li: list):
t = []
for i in li:
t.append(str(i))
return t