diff options
author | Li Jin <dragon-fly@qq.com> | 2025-06-04 17:02:34 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2025-06-04 17:02:34 +0800 |
commit | c362dc29a44a5276afa1ef7e8f6eba969e1468d7 (patch) | |
tree | 60696c53516362ee24546bae7127e62bf711650a /doc/docs/zh | |
parent | d127557dd0678482e1f91618842f15315f843d5b (diff) | |
download | yuescript-c362dc29a44a5276afa1ef7e8f6eba969e1468d7.tar.gz yuescript-c362dc29a44a5276afa1ef7e8f6eba969e1468d7.tar.bz2 yuescript-c362dc29a44a5276afa1ef7e8f6eba969e1468d7.zip |
Updated docs. [skip CI]
Diffstat (limited to 'doc/docs/zh')
-rwxr-xr-x | doc/docs/zh/doc/README.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/docs/zh/doc/README.md b/doc/docs/zh/doc/README.md index 7ff205c..9669231 100755 --- a/doc/docs/zh/doc/README.md +++ b/doc/docs/zh/doc/README.md | |||
@@ -590,13 +590,13 @@ merge = {...a, ...b} | |||
590 | 你可以使用 **#** 操作符来反向索引表中的元素。 | 590 | 你可以使用 **#** 操作符来反向索引表中的元素。 |
591 | 591 | ||
592 | ```moonscript | 592 | ```moonscript |
593 | print data.items[#] -- 获取表的最后一个元素 | 593 | last = data.items[#] |
594 | print data.items[#-1] -- 获取表的倒数第二个元素 | 594 | second_last = data.items[#-1] |
595 | ``` | 595 | ``` |
596 | <YueDisplay> | 596 | <YueDisplay> |
597 | <pre> | 597 | <pre> |
598 | print data.items[#] -- 获取表的最后一个元素 | 598 | last = data.items[#] |
599 | print data.items[#-1] -- 获取表的倒数第二个元素 | 599 | second_last = data.items[#-1] |
600 | </pre> | 600 | </pre> |
601 | </YueDisplay> | 601 | </YueDisplay> |
602 | 602 | ||