mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
13 lines
252 B
Python
13 lines
252 B
Python
|
|
|
||
|
|
|
||
|
|
def prompt2cn(text: str, count: int, s: str = "#") -> str:
|
||
|
|
"""
|
||
|
|
格式化中文提示
|
||
|
|
:param text: 文本
|
||
|
|
:param count: 个数
|
||
|
|
:param s: #
|
||
|
|
"""
|
||
|
|
return s * count + "\n" + s * 6 + " " + text + " " + s * 6 + "\n" + s * count
|
||
|
|
|
||
|
|
|