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