- (@:menu-stat-text)
- (defun match-to-obj (char / res)
- (setq obj '("Apple" "Book" "Cat" "Dog"))
- (setq n 0)
- (while (null (wcmatch (nth n obj) (strcat char"*")))
- (setq n (1+ n)))
- (setq res (nth n obj))
- (if res res "")
- )
- ;; 将实物与字符组成表格
- (setq n 0)
- (table:make
- (getpoint)
- "分类统计"
- '("序号""对象""数量""名称")
- (mapcar 'cons
- '("1" "2" "3" "4" "5")
- (vl-sort
- (mapcar '(lambda(x)
- (list
- (car x)
- (cdr x)
- (match-to-obj (car x))))
- @:tmp-stat-result)
- '(lambda(x y)
- (< (car x)
- (car y)))
- )))
-
视频已更新 |