gpt4 book ai didi

lisp 读取命令对 sbcl 工作错误

转载 作者:太空宇宙 更新时间:2023-11-03 18:57:34 24 4
gpt4 key购买 nike

<分区>

我将这个读取函数的示例从(Lisp 的土地)输入到我的 sbcl repl,它不显示提示:“请输入你的名字”,直到我输入响应。然后它显示响应。我知道这是错误的是什么给?

(defun say-hello ()
(princ "Please type your name:") (let ((name (read-line)))
(princ "Nice to meet you, ")
(princ name)))

我尝试了其他示例写入函数,并尝试用 write 代替 princ。运气不好

这是从我的回复中剪切和粘贴的内容:

* (defun say-hello ()
(princ "Please type your name:") (let ((name (read-line)))
(princ "Nice to meet you, ")
(princ name)))
WARNING: redefining COMMON-LISP-USER::SAY-HELLO in DEFUN

SAY-HELLO
* (say-hello)
gregg
Please type your name:Nice to meet you, gregg
"gregg"

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com