include?
有人可以在以下上下文中解释该方法背后的逻辑吗?
some_var = gets.chomp.to_i
until (1..12).include? some_var
print "Please, re-type it again!"
number = gets.chomp.to_i
end
include?
有人可以在以下上下文中解释该方法背后的逻辑吗?
some_var = gets.chomp.to_i
until (1..12).include? some_var
print "Please, re-type it again!"
number = gets.chomp.to_i
end