问题描述
def initialize(filename)
# Need to modify this code so that the program
# doesn't abend if it can't open the file but rather
# displays an informative message
@f = File.open(filename,'r:utf-8')
else
puts "This file does not exist!"
exit
end
我该如何解决词法分析器代码中的“else without rescue is used”的问题?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)