关于特定方案/球拍的快速语法问题。显示不带引号的字符串?
我正在方案中编写一个程序,最终输出到指定的文件并输出字符串和列表。我正在使用 (display ) 命令,但是当我显示字符串时,它会显示带有引号的内容。例如:“集合”(a (b (cd)))”和“(((dc) b) a)”是相等的。是否可以在不加引号的情况下写入文件?提前致谢
I am writing a program in scheme which eventually outputs to a specified file and outputs both strings and lists. I am using the (display ) command, but when I display a string it shows with quotations around it. EX: "The sets"(a (b (c d)))"and"(((d c) b) a)"are equal." Is it possible to write to file without the quotations? Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如 sepp2k 评论的那样,显示绝对可以满足您的要求。我猜你实际上正在使用其他东西。尽管如此,我可能只会使用“printf”。 EG:
...产生输出:
As sepp2k comments, display definitely does what you want. I'm guessing that you're actually using something else. Be that as it may, I would probably just use "printf" for this. E.G.:
... producing output: