require "pathname" Pathname.pwd + "/../"
本文标题:Ruby获取上一级目录
本文链接:https://www.haomeiwen.com/subject/uvjjxctx.html
网友评论