在线去除空格工具

2026-06-15 06:00:27

curl -X POST https://mate.tools/api/v1/text-cleanup.php \

-H "Content-Type: application/json" \

-d '{"text":" hello world \n\n\n hello world ","operations":["trim","collapse_spaces","dedupe_lines"]}' import urllib.request, json

req = urllib.request.Request(

"https://mate.tools/api/v1/text-cleanup.php",

data=json.dumps({"text":" hello world \n\n\n hello world ","operations":["trim","collapse_spaces","dedupe_lines"]}).encode(),

headers={"Content-Type": "application/json"},

)

with urllib.request.urlopen(req) as r:

print(json.load(r)) const r = await fetch("https://mate.tools/api/v1/text-cleanup.php", {

method: "POST",

headers: { "Content-Type": "application/json" },

body: JSON.stringify({"text":" hello world \n\n\n hello world ","operations":["trim","collapse_spaces","dedupe_lines"]}),

});

console.log(await r.json()); 添加到 claude_desktop_config.json(Claude Desktop)、~/.cursor/mcp.json(Cursor)或任何其他MCP兼容客户端:

{

"mcpServers": {

"mate-tools": {

"command": "npx",

"args": ["-y", "@mate-tools/mcp-server"]

}

}

}

eclipse下载与安装(汉化教程)超详细
如何查询宽带运营商是哪家 查询宽带运营商归属