StackOverflow 文档 Elixir Language 教程 字符串 获取子字符串 获取子字符串 Created: November-22, 2018 iex> my_string = "Lorem ipsum dolor sit amet, consectetur adipiscing elit." iex> String.slice my_string, 6..10 "ipsum" 拆分一个字符串转换为字符串