排序
Linux【yum源】一键换源(全)
中国教育网海外 bash <(curl -sSLk https://cdn.b52m.cn/static/linuxsource.sh) bash <(curl -sSLk https://cdn.b52m.cn/static/linuxsource.sh) --edu bash <(curl -sSLk https://cd...
Python课案例:计票机制
y = {} x = [] print('输入quit表示选手成绩录入完毕') while True: name = input('输入选手名称: \n') if name == 'quit': break score = float(input('请输入选手票数: \n')) y[name] = score...
Python_函数练习题
1. 编写一个函数,该函数接收两个数字作为输入,并返回这两个数字的最大公约数。 def fun(x, y): while y != 0: temp = y y = x % y x = temp return x num1 = int(input('请输入第一个数字: '...
Python_练习_24.3.15
class Friend: def __init__(self): self.friend_li = {} # 实例方法 def welcome(self): print('欢迎来到好友管理系统') print('1.添加好友') print('2.删除好友') print('3.展示好友') print(...
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...
Python_练习_24.3.8
1.写出下列题目中的pyhon语句 定义一个Employee类(员工) 在员工类中定义类属性age(年龄)为40 定义一个方法displayCount(),输出“公司最高工资” 通过类Employee修改类属性age的值=35 在方...
MYSQL_数据库设计与开发综合案例练习_24.4.8
题目 综合案例-学生选课系统 学生选课管理系统用来帮助高校学生选修课程,学生通过系统可以查看所有选修课程的相关信息,包括课程名、学时、学分、也可以查看相关授课教师的信息,包括教师姓名...