if user_input.include? "s"
user_input.gsub!(/s/ "th")
else
print "Nothing to change"
end
하지만 같은 다른 include
를 추가 할 때 그래서이 elsif
내가 추가하려면 어떻게 이것들을 인식하지 못합니다 작동 다음 코드 함께 포함합니까?
if user_input.include? "s"
user_input.gsub!(/s/ "th")
elsif user_input.include? "cee"
user_input.gsub!(/cee/ "th")
else
print "Nothing to change"
end
당신이 예를 들어 입력/출력을 추가 할 수 있습니다 : 당신이 그렇게 같은 단일
gsub
를 사용하는 것이 특정 사용 사례를 들어, 나는 제안? –