gpt4 book ai didi

Lisp - 字符串连接

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

我正在尝试在 lisp 中连接字符串,在 linux 上使用 clisp。
我运行以下代码:

(defun bingo ()
(strcat "Correct! You guessed " (itoa *count*) " times."))

但是,得到以下错误:

EVAL: undefined function STRCAT
EVAL: undefined function ITOA

有什么建议吗?

最佳答案

CL-USER 1 > (format nil "This is too easy. ~a day I'll learn Lisp." 1)
"This is too easy. 1 day I'll learn Lisp."

关于Lisp - 字符串连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24711961/

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