抽象类可以有自己的成员变量,继承抽象类的对象共用成员变量,也可以修改成员变量的值。可以有非抽象的方法。 接口只能有static final的成员变量(一般不使用),只能有抽象的方法。 public abstract class Door { String color; abstract void o ...
分类:
编程语言 时间:
2020-08-18 13:17:02
阅读次数:
65
一、开发模式 MVC模式: model:数据库 view:前端展示 controller:逻辑控制MTV模式 model:数据库 view:逻辑控制 template:前端展示 二、Django介绍 flask,FastApi是轻量级服务端开发框架 Django是重量级服务端开发框架 ORM:封装了 ...
分类:
其他好文 时间:
2020-08-15 22:39:46
阅读次数:
81
input用户交互函数使用input函数需要用户键盘输入变量,多种表达方式注意在python中“”与‘’是没区别的,所见即所得,未加“”表示引用变量,在shell“”会进行转义name=input("yourname:")print(input("yourname:"))yourname:dwl常用占位符%d整数%f浮点数%s字符串%x十六进制整数使用方法:tpl="iam%s"%"alex"##
分类:
编程语言 时间:
2020-08-13 22:10:52
阅读次数:
103
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use n ...
分类:
其他好文 时间:
2020-08-13 12:42:41
阅读次数:
61
This example shows how to implement the HARQ Indicator (HI) and physical HI channel (PHICH). You create the processing chain of coding hybrid indicato ...
分类:
其他好文 时间:
2020-08-13 12:11:36
阅读次数:
61
新建一个空的文件夹作为项目的目录,并在目录下执行 yarn create umi 或者 npm create umi 如果不创建空目录,可以执行 yarn create umi appname 或者 npm create umi appname 选择ant design pro Select the ...
分类:
其他好文 时间:
2020-08-12 15:54:48
阅读次数:
78
This is an in-detail account of the Raspberry Pi boot process collected from various sources, mainly from the official forums. First, you need to know ...
分类:
Web程序 时间:
2020-08-12 15:43:48
阅读次数:
87
数组能够在单个变量中存储多个值: 实例 <?php $cars=array("Volvo","BMW","Toyota"); echo "I like " . $cars[0] . ", " . $cars[1] . " and " . $cars[2] . "."; ?> 数组是什么? 数组是一个 ...
分类:
编程语言 时间:
2020-08-11 13:10:06
阅读次数:
95
public class MinStack { /** initialize your data structure here. */ Stack<Integer> stack = new Stack<>(); private int min = Integer.MIN_VALUE; List<In ...
分类:
其他好文 时间:
2020-08-10 22:08:46
阅读次数:
86
字符串创建 字符串是 Python 中最常用的数据类型。我们可以使用引号('或")来创建字符串。 创建字符串很简单,只要为变量分配个值即可。 单引号和双引号 在 Python 中我们都知道单引号和双引号都可以用来表示个字符串,比如 print("What's your name?") 结果: 好好学 ...
分类:
编程语言 时间:
2020-08-10 21:00:39
阅读次数:
74