Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试编写一个在 Haskell 中写入井号“£”的程序,但每当我尝试使用它时它都会输出“\163”。我猜这是一些字母数字代码,但是如何让它显示我想要的内容?当调用返回“£”的函数时,我正在写信给控制台。
谢谢你。
这已通过使用 putStrLn 解决,因为print并且show不允许显示非 ASCII 字符。
print
show