我知道您可以使用String将read转换为数字:Prelude> read "3" :: Int 3 Prelude> read "3" :: Double 3.0 但是,如何获取String值的Int表示形式? 最佳答案 read的反义词是show。Prelude> show 3 "3" Prelude> read $ show 3 :: Int 3