嗨,巴斯特。请使用代码标签。
在我这方面,有些函数我没有定义(sel2lst、att2lst、getval、strchg、setval),因此如果没有它,很难调试代码。
strchg还使用受保护的符号,即*。如果是字符串,则应为“*”。如果要传递乘法运算符,则必须使用“*”。也适用于其他参数(如“*01*”和“55555 01*”)
还要注意的是,即使在progn语句之间是由大量列表定义的不同符号
- (setq str_line (strchg str_line *01* * 5555501*))
- (setq str_line (strchg str_line *02* * 5555502*))
- (setq str_line (strchg str_line *03* * 5555503*))
- (setq str_line (strchg str_line *04* * 5555504*))
- (setq str_line (strchg str_line *05* * 5555505*))
- (setq str_line (strchg str_line *06* * 5555506*))
- (setq str_line (strchg str_line *07* * 5555507*))
- (setq str_line (strchg str_line *08* * 5555508*))
- (setq str_line (strchg str_line *09* * 5555509*))
- (setq str_line (strchg str_line *10* * 5555510*))
- (setq str_line (strchg str_line *11* * 5555511*))
- (setq str_line (strchg str_line *12* * 5555512*))
- (setq str_line (strchg str_line *13* * 5555513*))
当然会有更好的选择(重复,while,foreach)。但是看起来,它不仅不是最优的,而且如果我正确地解释stringchange的“strchg”,你似乎只是一次又一次地改变变量strline的值,也许没有做任何事情? |