`import json:lib/json.mq.md` binds file libraries; `import fmt:time.format` binds member short names (replaces `> use`). Legacy `> path.mq.md` / `> use` now hard-error with a hint. Migrates repo docs, skills, ext, lib, public, examples, man-test and tests; adds a negative gold and updates view/catalog rendering. Co-authored-by: Cursor <cursoragent@cursor.com>
26 lines
217 B
Markdown
26 lines
217 B
Markdown
---
|
|
title: 循环示例
|
|
---
|
|
|
|
# main
|
|
|
|
倒数:
|
|
|
|
*`n` = 3*
|
|
|
|
- `n` > 0
|
|
> print text=`n`
|
|
*`n` = `n` - 1*
|
|
|
|
遍历篮子:
|
|
|
|
`篮子` =
|
|
|
|
| 果 |
|
|
|----|
|
|
| 苹果 |
|
|
| 梨 |
|
|
|
|
- [果](篮子)
|
|
> print text=今天吃`果`
|