StackOverflow 文档 Elixir Language 教程 字符串 检查 String 是否包含 Substring 检查 String 是否包含 Substring Created: November-22, 2018 iex(1)> String.contains? "elixir of life", "of" true iex(2)> String.contains? "elixir of life", ["life", "death"] true iex(3)> String.contains? "elixir of life", ["venus", "mercury"] false 加入字符串字符串插值