自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 实训作业3

class Student: def __init__(self, no, name, age, contact): self.no = no self.name = name self.age = age self.contact = contact def __str__(self): return "{},{},{},{}".format(self.no, self.name, self.age, sel.

2021-12-21 08:32:25 60

原创 基础实训2

from StudentEntity import Studentdef loadStudents(): file = open("student", "r", encoding="utf-8") lines=file.readlines() students = [] for line in lines: a=line.split(',') students.append(Student(a[0],a[1],int(a[2]),a[3]..

2021-12-21 08:30:32 71

原创 学生基础信息

import StudentEntityfrom DataAccess import*students = []def menu(): print('-'*40) print("欢迎使用学生通讯管理系统v1.0") print("[1]增加学员信息") print("[2]删除学员信息") print("[3]打印学员信息") print("[4]退出系统") print('-'*40)def add(students): no=in.

2021-12-21 08:27:29 68

原创 魔术方法啊

class Person(): def __init__(self, name, age,favor): self.name = name self.age = age self.favor = favorp1 = Person('小卤蛋', 18,'猪猪')print(p1.name)print(p1.age)print(p1.favor)

2021-11-12 09:44:37 185

原创 是通讯系统

def menu(): print('-' * 40) print("通讯管理系统v1.0") print("[1] 增加学员信息") print("[2] 删除学员信息") print("[3] 查询学员信息") print("[4]遍历所有学员信息") print("[5]退出系统") print('-' * 40)info=[]def add_s(): info_dict={} info_dict["a"]=input...

2021-11-03 22:47:22 42

原创 Python猜字游戏

import random#范围在1——101(其中不包括101)n=random.randint(1,101)cnt=0while True: ans=int(input("请输入一个数字:")) cnt+=1 if ans==n: print("猜对了,一共猜了%d"%cnt) break elif ans>n: print("猜大了") else: print("猜小了")...

2021-10-24 16:39:10 177

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除