Hak*_*ari 2 ruby exception-handling
foo, bar = 1, 0/0 rescue 0, 0 # this won't work foo.should eql 0 bar.should eql 0
我怎么去做这个通行证?
sep*_*p2k 5
foo, bar = ([1, 0/0] rescue [0, 0])
归档时间:
15 年,2 月 前
查看次数:
237 次
最近记录: