20231216专题

20231216 1+X 中级实操考试(id:3886)

//补充完成该类的含参构造方法public Info(String name, int age, String sex, String phone) {this.name = name;this.age = age;this.sex = sex;this.phone = phone;}   // 请修改该方法,以保证打印对象时输出格式如下:// [name="zs";age=20;sex=

Python3 字符串 ----20231216

Python3 字符串 字符串是 Python 中最常用的数据类型。我们可以使用引号( ' 或 " )来创建字符串。创建字符串很简单,只要为变量分配一个值即可。例如:var1 = 'Hello World!'var2 = "Runoob" Python 访问字符串中的值 Python 不支持单字符类型,单字符在 Python 中也是作为一个字符串使用。Python 访问子字符串,可