摘要: 适配器模式就像我们用220v的电压给5v的手机充电,中间需要一个充电器,而这个充电器就是适配器,其中,适配器模式有3种: 类适配器 Ivoltage5V是5v的接口,Voltage220V是220V的接口, VoltageAdpter是适配器,VoltageAdpter实现Ivoltage5V并继承 阅读全文
posted @ 2020-06-30 20:59 18软件工程五班陈星星 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 原型模式主要是为了解决需要创建多个相同的类时,提高其效率的一种模式。 假设我们现在要new10十只相同的🐏,我们用最蠢的方法: sheep类: ​ package com.atguigu.prototype; public class Sheep { private String name; pr 阅读全文
posted @ 2020-06-30 17:56 18软件工程五班陈星星 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 无 阅读全文
posted @ 2019-08-20 21:06 18软件工程五班陈星星 阅读(95) 评论(0) 推荐(0) 编辑
摘要: import javax.script.Invocable;import javax.script.ScriptEngine;import javax.script.ScriptEngineManager;import javax.script.ScriptException; public cla 阅读全文
posted @ 2019-08-07 17:35 18软件工程五班陈星星 阅读(477) 评论(0) 推荐(0) 编辑
摘要: configparse# import configparser# config = configparser.ConfigParser()# config["DEFAULT"] = {'ServerAliveInterval': '45',# 'Compression': 'yes',# 'Com 阅读全文
posted @ 2019-06-21 21:10 18软件工程五班陈星星 阅读(196) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<stdlib.h>#include<string.h>#define Length sizeof(struct student) //用来开辟空间int n=0;struct student{// char class_0[20]; //班级 ch 阅读全文
posted @ 2019-06-20 15:12 18软件工程五班陈星星 阅读(327) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<stdlib.h>#include<string.h>#define Length sizeof(struct student) //用来开辟空间int n=0;struct student{// char class_0[20]; //班级 ch 阅读全文
posted @ 2019-06-19 20:02 18软件工程五班陈星星 阅读(672) 评论(0) 推荐(0) 编辑
摘要: void stuSystem(){ struct student *head,*stu; int lookup_num; int Delete_num; int Modify_num; char ckey='a'; int istate=0; do { system("cls"); //vc++清屏 阅读全文
posted @ 2019-06-18 11:23 18软件工程五班陈星星 阅读(299) 评论(0) 推荐(0) 编辑
摘要: # 登录认证# 加密 --> 解密# 摘要算法# 两个字符串 :# import hashlib # 提供摘要算法的模块md5 = hashlib.md5()md5.update(b'123456')print(md5.hexdigest())#aee949757a2e698417463d47aca 阅读全文
posted @ 2019-06-17 19:07 18软件工程五班陈星星 阅读(249) 评论(0) 推荐(0) 编辑
摘要: class Teacher: dic = {'查看学生信息':'show_student','查看讲师信息':'show_teacher'} def show_student(self): print('show_student') def show_teacher(self): print('sh 阅读全文
posted @ 2019-06-14 17:01 18软件工程五班陈星星 阅读(128) 评论(0) 推荐(0) 编辑