a= 0 x= rand(5) y= rand(5) if a !=0 print "你已经看过规则了!" else if x>y a +=1 print x print "big" x +=1 print "因为X大于Y,所以X需要加1,结果等于#{x}" elsif x==y a +=1 print x print "middle" print "因为X等于Y,所以X不变,结果等于#{x}" else a +=1 print x print "small" x -=1 print "因为X小于Y,所以X需要减1,结果等于#{x}" end end
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |