最新发布第4页
排序
Python_练习_24.3.15
class Friend: def __init__(self): self.friend_li = {} # 实例方法 def welcome(self): print('欢迎来到好友管理系统') print('1.添加好友') print('2.删除好友') print('3.展示好友') print(...
CSS重难点-浮动与定位
笔记 (1)display属性 设置标签在页面的显示方式,主要取值有: none 设置标签不在页面显示 block 设置标签以块状标签的形式在页面呈现 inline 设置标签以行内标签的形式在页面呈现 inline-block...
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.8
1.写出下列题目中的pyhon语句 定义一个Employee类(员工) 在员工类中定义类属性age(年龄)为40 定义一个方法displayCount(),输出“公司最高工资” 通过类Employee修改类属性age的值=35 在方...
Linux_练习_24.3.29
练习1 1、查看当前登录的用户信息,并理解系统显示的信息含义 who 2、查看系统中用户的信息,统计出不同类型用户的数量 cat /etc/passwd -b 3、创建一个自己姓名的新用户,设置其密码为:redhat...
Python递归案例
把10不断处以2,直到不能除为止,打印每次的结果 def a(num): if num == 0: return 0 else: print(num) a(num // 2) a(10) 兔子数列 def f(month): if month < 3: return 1 else: return f(m...
Python求两数的最大公约数
import math while True: num1 = int(input('请输入第一个整数')) num2 = int(input('请输入第二个整数')) if num1 > num2: while num2 != 0: num1, num2 = num2, num1 % num2 print(num1) e...
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笔记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中创建数据...