后端开发2025年07月27日
class A def self.ask1 puts "the method of class" end def ask2 puts "the method of instance" end end #类的实例对象的方法,方法属于类所生成New出来的实例对象。 p a.methods.length p a.class...
本站已有295人使用QQ登录你即将成为第296位