Files
marqdo/public/stdlib/文本.mq.md
T
cflmyandCursor 6db3da1cc0 fix(public): quote italic call-arg string literals for pages CI
Bare identifiers inside *…* are variables; quote text args (and var="x")
so marqdo run on public/*.mq.md succeeds. Narrow pages.yml exclude to
utils.mq.md and 工具.mq.md instead of overly broad ??.mq.md.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-28 11:59:10 +08:00

389 B


title: lib/文本 — 字符串 description: 去空白、拆分、拼接 导入 文本:lib/文本.mq.md

main

导入 lib/文本.mq.md。函数:去空白(s)、拆分(s, sep)、拼接(xs, sep)。

t = > 文本.去空白 s=" marqdo "

打印 内容=t

parts = > 文本.拆分 s="甲,乙,丙" sep=","

j = > 文本.拼接 xs=parts sep="-"

打印 内容=j