你好,我有一个Lisp程序的问题。
- (while (>= cnt 0)
- (setq [color="red"]km[/color] (+ [color="red"]aramesafe[/color] [color="red"]bkm[/color])))
- (write-line (strcat "\t\tNO " [color="red"]km[/color] " KOT 0.00000 0.00 0.00 0 0") txt)
我不能做这个部分
即
- (setq bkm 0)
- (setq aramesafe 20)
- (while (>= cnt 0)
- (setq km (+ aramesafe bkm)))
添加aramesafe值,重复增加到最后,如下所示:
- (write-line (strcat "\t\tNO " [color="red"]20[/color] " KOT 0.00000 0.00 0.00 0 0") txt)
- (write-line (strcat "\t\tNO " [color="red"]40[/color] " KOT 0.00000 0.00 0.00 0 0") txt)
- (write-line (strcat "\t\tNO " [color="red"]60[/color] " KOT 0.00000 0.00 0.00 0 0") txt)
- (write-line (strcat "\t\tNO " [color="red"]80[/color] " KOT 0.00000 0.00 0.00 0 0") txt)
- ...
- ...
这里全是Lisp程序
|