truncate pi函數
-- 表示截斷, 此處結果爲 3spa
haskell中的touple是可變的,而python中是不可變的
lines函數:
lines :: String -> [String]
以‘\n'爲分隔符,創建列表
interact 函數:
interact :: (String -> String) -> IO ()