Lv1.梦旅人
您需要 登录 才可以下载或查看,没有帐号?注册会员
使用道具 举报
args =[11,19,21,29,31,39,40,50,60,70,80,90,100,100]if args.size == 14 a = [11,19,21,29,31,39] b = [40,50,60,70,80,90,100] c = a+b if c.all?{|i| i == args[c.index(i)]} if b.include?(args.last) return "xx" end endend
args =[11,19,21,29,31,39,40,50,60,70,80,90,100,100] if args.size == 14 a = [11,19,21,29,31,39] b = [40,50,60,70,80,90,100] c = a+b if c.all?{|i| i == args[c.index(i)]} if b.include?(args.last) return "xx" end end end
Pantsu 发表于 2013-8-5 16:21 1、报错的行多了if 2、arg × args √ 改动后:
本版积分规则 发表回复 回帖后跳转到最后一页
折叠内容标题(非必须)
折叠内容
站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作
GMT+8, 2024-11-30 09:29
Powered by Discuz! X3.1
© 2001-2013 Comsenz Inc.