后端开发2025年07月17日
1、不需要声明即可使用变量2、类的名称的第一字母必须大写3、一个有构造函数的典型类class Rectangleattr_accessor:height,:widthdef initialize (hgt,wdth)@height = hgt@width = wdthenddef area ()@height*@widthendend4、程序控制(1)循环...
本站已有295人使用QQ登录你即将成为第296位