if next_move.include? "0" or next_move.include? "1" xxxxxxx end
在笨办法学Ruby中看到这里不太明白
人生最曼妙的风景,竟是内心的淡定与从容!
is not an operator. The ? in ruby can be used in function names to indicate a judgment. For example, include? means whether to include
include?
Convention in ruby?结束的方法名返回值是true/false
?
true/false
is not an operator. The ? in ruby can be used in function names to indicate a judgment. For example,
include?
means whether to includeConvention in ruby
?
结束的方法名返回值是true/false