本帖最后由 simon8001 于 2011-6-14 09:18 编辑
 - (defun c:ff()
- (setq sxb (list(list"S1" "26") (list"09" "20") (list"09" "26") (list"09" "20") (list"10" "26") (list"10" "20") (list"10" "26")
- (list"10" "20") (list"19" "26") (list"S" "") (list"10" "20") (list"10" "26") (list"10" "20") (list"10" "26")
- (list"11" "20") (list"11" "26") (list"10B" "20") (list"11A" "26") (list"11B" "20") (list"11A" "26") (list"" "")))
- (setq n-sxb (length sxb))
- (setq bb(nth (- n-sxb 1) sxb))
- (if (= bb '(list "" ""))
- (progn (setq sxb(vl-remove bb sxb))
- (setq n-sxb-2(- n-sxb 1))))
- )
如题,删除表中最后一个元素,vl-remove这个命令应该不对呀!可是我没查到?希望朋友们帮着解答一下!!
|