我目前正在学习Ruby,但我似乎无法理解if/start/../end的作用...有帮助吗?whilegetsprintif/start/../end/end 最佳答案 既然您提到您是Ruby的新手,首先值得注意的是您在示例中处理正则表达式(regex)-两个正斜杠之间分隔的任何内容:/start/#aregularexpressionliteral正则表达式是一种从较大字符串中匹配特定字母组合的强大方法。"Tostartmeanstobegin."=~/start/#=>true,because'start'isinthestri