truncate pi-- 表示截断, 此处结果为 3haskell中的touple是可变的,而python中是不可变的lines函数:lines :: String -> [String]以‘\n'为分隔符,建立列表interact 函数:interact :: (String -> String) -> IO ()