Rev 5766 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2071 | zjchen | 1 | !if $numlist_type=record |
2 | !set numlist_str=$emph fname$emphend |
||
3 | !else |
||
4 | !set numlist_str=$emph string$emphend |
||
5 | !endif |
||
6 | |||
7 | $emph numlist$emphend 可以是一个整数, 或用逗号分隔的整数表, 或整数的一个范围. |
||
5766 | bpr | 8 | <br/> |
2071 | zjchen | 9 | 一个正整数表示 $numlist_str 内从头算起的 $numlist_type 的个数: |
10 | 而 $emph 1 $emphend 则对应第一个 $numlist_type. |
||
11 | 负整数表示 $numlist_str 内从末尾算起的 $numlist_type 的个数: |
||
12 | 而 $emph -1 $emphend 对应最后一个 $numlist_type, |
||
13 | $emph -2 $emphend 对应倒数第二个 $numlist_type, 等等. <p> |
||
14 | 整数范围的语法是 |
||
15 | <pre>$emph n1$emphend to$emph n2$emphend</pre> |
||
16 | 例如, <tt>$emph 2 to -2$emphend</tt> |
||
5766 | bpr | 17 | 意为整个 $numlist_str 除去首尾的 $numlist_type. <br/> |