我在 lisp 中声明了以下列表:
(defvar car-owners-2 (list (list 'yaakov (list 'volvo 100000.0))
(list 'moshe (list 'vw 75000.0))
(list 'rachel (list 'mazda 60000.0))
(list 'sarah (list 'volvo 100000.0))
(list 'david (list 'renault 50000.0))
(list 'leah (list 'vw 75000.0))))
当我想从监听器文件中看到它时,我得到了这个令人作呕的输出:
CL-USER 19 : 6 > car-owners-2
(((QUOTE YAAKOV) (QUOTE (# 100000.0))) ((QUOTE MOSHE) (QUOTE (# 75000.0)))
((QUOTE RACHEL) (QUOTE (# 60000.0))) ((QUOTE SARAH) (QUOTE (# 100000.0)))
((QUOTE DAVID) (QUOTE (# 50000.0))) ((QUOTE LEAH) (QUOTE (# 75000.0))))
如何使输出正常?为什么它打印#而不是名称?我希望输出是这样的:
((YAAKOV (VOLVO 100000.0)) (MOSHE (VW 75000.0)) (RACHEL (MAZDA 60000.0))...)
谢谢。我使用 LispWorks 6.0.1