mirror of https://github.com/Mai-with-u/MaiBot.git
Merge branch 'dev' of https://github.com/MaiM-with-u/MaiBot into dev
commit
16f32daf68
|
|
@ -6,6 +6,7 @@ log/
|
|||
logs/
|
||||
tool_call_benchmark.py
|
||||
run_ad.bat
|
||||
llm_tool_benchmark_results.json
|
||||
MaiBot-Napcat-Adapter-main
|
||||
MaiBot-Napcat-Adapter
|
||||
/test
|
||||
|
|
|
|||
|
|
@ -1,16 +0,0 @@
|
|||
def 计算字符串长度(输入字符串: str) -> int:
|
||||
"""计算输入字符串的长度
|
||||
|
||||
参数:
|
||||
输入字符串: 要计算长度的字符串
|
||||
|
||||
返回:
|
||||
字符串的长度(整数)
|
||||
"""
|
||||
return len(输入字符串)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
# 测试代码
|
||||
测试字符串 = """你。"""
|
||||
print(f"字符串 '{测试字符串}' 的长度是: {计算字符串长度(测试字符串)}")
|
||||
Loading…
Reference in New Issue