排序
Python_练习_24.3.22
class School_number(): def __init__(self, name, age): self.name = name self.age = age def describe(self): print(f'我的名字是{self.name},我的年龄是{self.age}') class Student(School...
python 24.3.21 作业
'''1. 使用继承机制,为Car类创建两个子类:赛车(Racing_Car)类和公交车(Bus)类。 为Car类定义属性最高时速(Top_speed)属性和核载人数(Nuclear_Number)方法, 并分别通过子类对象调用父...
Python_封装和继承_练习
使用继承机制,为Car类创建两个子类:赛车(Racing_Car)类和公交车(Bus)类。为Car类定义属性最高时速(Top_speed)属性和核载人数(Nuclear_Number)方法,并分别通过子类对象调用父类中的成...
数据库MYsql笔记2024年3月18
-- (1)删除数据库 drop database if exists t4; -- (2)创建数据库 create database if not exists t4; -- (3)使用数据库 use t4; -- 删除数据表 drop table if exists book; -- 在t3中创建数据...
作业2024数据库3月8
-- 第一个 create table if not exists acc_ount( userid char(6) not null primary key comment '用户名', fullname varchar(10) not null comment '用户名', pass_word varchar(20) not null ...
MYSQL_练习_5个表_24.3.18
drop database if exists t4; create database if not exists t4; use t4; drop table if exists account; create table account ( userid char(6) not null primary key comment '用户号', ful...
mysql课堂训练–yxj
-- (1)删除数据库 drop database if exists t3; -- (2)创建数据库 create database if not exists t3; -- (3)使用数据库 use t3; -- 第一篇 drop table if exists account; create table if not...
3.18mysql五种表代码
create database petstore; use petstore; create table account ( userid char(6) not null , fullname varchar(10) not null , password varchar(20) not null , sex char(2) not...
Python_练习_24.3.15
class Friend: def __init__(self): self.friend_li = {} # 实例方法 def welcome(self): print('欢迎来到好友管理系统') print('1.添加好友') print('2.删除好友') print('3.展示好友') print(...
MySQL_练习_24.3.11
-- (1)删除数据库 drop database if exists t3; -- (2)创建数据库 create database if not exists t3; -- (3)使用数据库 use t3; -- 删除数据表 drop table if exists book; -- 在t3中创建数据...