北梦的头像-北梦の博客
UID:1 已加入本站561天 总消费:0 徽章-资深玩家-北梦の博客徽章-人气大使-北梦の博客徽章-人气佳作-北梦の博客8枚徽章湖北省鄂州市管理员
这家伙很懒,什么都没有写...
Python_练习_24.4.7-北梦の博客

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...
Mysql_数据插入删除修改_作业_24.4.1-北梦の博客
Python_练习_24.3.29-北梦の博客

Python_练习_24.3.29

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

Linux_练习_24.3.29

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

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-北梦の博客
Python_练习_24.3.22-北梦の博客

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_封装和继承_练习-北梦の博客

Python_封装和继承_练习

使用继承机制,为Car类创建两个子类:赛车(Racing_Car)类和公交车(Bus)类。为Car类定义属性最高时速(Top_speed)属性和核载人数(Nuclear_Number)方法,并分别通过子类对象调用父类中的成...
MYSQL_练习_5个表_24.3.18-北梦の博客

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...

运行时间

用户总数

浏览总数

文章总数

今日发布

今日
emo