gpt4 book ai didi

file - 输出到 lisp 中的文本文件

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

我是 LISP 新手,在编写文本文件时遇到了问题。我已经通读了食谱和其他教程,以及此处的以下示例,但我一直遇到同样的错误:

"Incorrect keyword arguments in (:DIRECTION
:OUTPUT
:IF-EXSISTS
:SUPERCEDE
:IF-DOES-NOT-EXSIST
:CREATE) .
[Condition of type CCL::SIMPLE-PROGRAM-ERROR]"

我的代码如下:

(defun writeTest()
(with-open-file (str "numbers.txt"
:direction :output
:if-exsists :supercede
:if-does-not-exsist :create)

(format str "printing to a file")))

非常感谢任何帮助!

最佳答案

拼写错误:"exsists" --> "exists"

关于file - 输出到 lisp 中的文本文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40198825/

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