일치하지 않습니다입력 조건 내가 while 루프에서 얻으려고
BYE
BYE
BYE
그리고 안 함 :
BYE BYE BYE
코드는 다음과 같습니다
작동하지 않습니다my_reply = ((word1 = gets) + (word2 = gets) + (word3 = gets))
while my_reply != ((word1 == 'BYE') and (word2 == 'BYE') and (word3 == 'BYE'))
puts 'Grandma: ...'
my_reply = ((word1 = gets) + (word2 = gets) + (word3 = gets))
end
puts 'Grandma: ' + 'Fine, sonny, don\'t hang out with your aging grandmother!'.upcase
. 도움이 필요해.
http://stackoverflow.com/q/3955688/38765 스크립트를 디버깅하는 방법에 대한 자세한 정보가 있습니다. –