|
今天也做了一个,不如狂刀的好 既然做了,就发上来吧 (defun c:jj() (setq a (getint "\n 请输入要去掉的位置序号:")) (if (/= d nil) (setq d nil)) (setq b '(1 2 3 4 5 6)) (setq len (vl-list-length b)) (setq n 0) (repeat len (if (and (< n len) (/= n (- a 1))) (progn (setq c (nth n b)) (setq d (cons c d)) ) ;end progn (princ) ) ;end if (setq n (+ 1 n)) ) ;end repeat (princ "\n") (reverse d) ) |