Lisp “Let”为什么要添加换行符?(我能摆脱它吗?)

Lisp “Let”为什么要添加换行符?(我能摆脱它吗?),lisp,common-lisp,Lisp,Common Lisp,在我的shell中,我尝试了一些东西,注意到并在我的let语句的开头添加了换行符 [86]> (setf A 5) 5 [87]> (let () (print 'hello) (print 'there) A ) ;; this blank line right here HELLO THERE 5 是否存在删除额外换行符的方法?不是让添加换行符,而是打印 根据:“print与prin1类似,只是对象的打印表示前面有一个换行符,后面有一个空格。” 您可以改用prin

在我的shell中,我尝试了一些东西,注意到并在我的
let
语句的开头添加了换行符

[86]> (setf A 5)
5
[87]> (let () (print 'hello) (print 'there) A )
       ;; this blank line right here
HELLO
THERE
5

是否存在删除额外换行符的方法?

不是让添加换行符,而是打印

根据:“print与prin1类似,只是对象的打印表示前面有一个换行符,后面有一个空格。”

您可以改用
prin1

CL-USER>(let()(prin1'hello)(打印在那里)5)
你好
那里
5
或者您可以使用
格式

CL-USER>(let()(格式为t“~a~%~a~%”“hello”在那里)5)
你好
那里
5