truncate pi

-- 表示截断, 此处结果为 3

haskell中的touple是可变的,而python中是不可变的

lines函数:

lines :: String -> [String]

以‘\n'为分隔符,建立列表

interact 函数:

interact :: (String -> String) -> IO ()

05-13 03:29