学习 第9页
个人学习记录

Python_练习_24.4.7

练习1 def GetAge(age): try: if age <= 0: raise Exception('输入的年龄不符合要求') except ValueError: print('年龄必须大于0') raise GetAge(-1) 练习2 num_one = int(input('请输入被除...
Linux_练习_24.4.7-北梦の博客

Linux_练习_24.4.7

练习1 1、以root用户登录linux 2、查看当前位置 pwd 3、查看当前位置有什么 ls -a 4、查看一个initial开头的文件的性质是啥 file initial-setup-ks.cfg 5、查看该文件的前6行内容 head -n 6 ini...
北梦的头像-北梦の博客SVIP北梦1年前
0941

Mysql_可恶的王晓林

drop table if exists student; create table student( stuid char(10) not null comment'学号', stuname char(10) not null comment'姓名', stusex char(2) not null comment'性别', studate d...
珊瑚海的头像-北梦の博客珊瑚海1年前
0921

Mysql_LibraryDB

drop database if exists LibraryDB; create database if not exists LibraryDB; use LibraryDB; -- 1. 读者表 (Readers Table) drop table if exists readers; create table readers ( -- 读者...
珊瑚海的头像-北梦の博客珊瑚海1年前
01161

Linux:rhel8本地挂载安装_练习_24.5.11

rhel8本地挂载安装 挂载光盘 先确定需要挂载的目录,我这里挂载的目录是/mnt/cdrom 可以自己创建 # 创建挂载目录 [root@localhost ~]# mkdir /mnt/cdrom # 挂载光盘 [root@localhost ~]# mount ...
北梦的头像-北梦の博客SVIP北梦1年前
0581

Python_练习_24.3.29

选择题 try-except-else-finally练习 编写程序,按用户输人的半径计算圆的面积,若半径为负值则抛出异常

Linux_练习_24.3.29

练习1 1、查看当前登录的用户信息,并理解系统显示的信息含义 who 2、查看系统中用户的信息,统计出不同类型用户的数量 cat /etc/passwd -b 3、创建一个自己姓名的新用户,设置其密码为:redhat...
北梦的头像-北梦の博客SVIP北梦1年前
01241
python购物车练习-北梦の博客

python购物车练习

class Shopping: def __init__(self): self.car = [] def shopping_car(self, itme): self.car.append(itme) def shopping_del(self, itme): self.car.remove(itme) def shopping_all(self): if...
koniaoer的头像-北梦の博客koniaoer1年前
0959

Python_练习_24.3.28

class ShoppingCart: def __init__(self): self.items = [] def add_items(self, item): if item in items_price: self.items.append(item) print(f'{item}已添加到购物车') else: print(f'没有...

MYSQL_练习_24.3.25

练习1 练习2
北梦的头像-北梦の博客SVIP北梦1年前
012012