【发布时间】:2019-09-18 02:17:44
【问题描述】:
如何打印带引号且没有反斜杠的格式化字符串?
例如当我进入时
(format "say ~a" "hello there!")
我想得到
" say "hello there!" "
我希望用引号将“hello there”括起来作为我输入的方式。但是,如果我将其格式化为字符串,结果如下:
"say \"hello there!\""
有没有办法在不使用反斜杠的情况下保留引号?
【问题讨论】:
标签: list racket format-string