import abc #定义一个说话的方式接口类,只能被继承 不能被实例化 class Speak(abc.ABC): #@abc.abstractmethod @abc.abstractmethod def to_speak(self): pass #定义学生说话的类 class Student( ...
分类:
编程语言 时间:
2021-06-04 18:50:52
阅读次数:
0
客户端发送tcp请求给服务端,最终所有服务端的逻辑都存在于服务端的netty中,进一步说就是channelHandler中 public class NettyServerPipelineFactory implements ChannelPipelineFactory { private Nett ...
分类:
其他好文 时间:
2021-06-04 18:49:49
阅读次数:
0
public class test{ public static void main(String[] arg){ //Date转为LocalDateTime DateTimeFormatter sdf1 = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm ...
分类:
其他好文 时间:
2021-06-04 18:44:19
阅读次数:
0
一.前端的代码 <p>Name: <input type='text', name = 'name'/></p> <p>Age: <input type = 'text' name ='age'/></p> <p>Sex: <label><input type = 'radio' name = 's ...
分类:
Web程序 时间:
2021-06-03 18:02:30
阅读次数:
0
# coding=utf-8 import smtplib from email.mime.text import MIMEText msg_from = 'abcdefghi@qq.com' # 发送方邮箱 passwd = 'abcdefghijklmn' # 填入发送方邮箱的授权码 msg_t ...
分类:
编程语言 时间:
2021-06-03 17:39:06
阅读次数:
0
1、用偶判断,不用奇判断 System.out.println(-1%2==1?"奇数":"偶数"); 偶数 原因:java计算余数:a/b -> a-a/b*b 所以-1/2余数为-1,不等于1. 2、不要只替换一个类 常量类中的属性final修饰。其他类引用时,final常量会被直接将值写到类中 ...
分类:
编程语言 时间:
2021-06-02 20:57:55
阅读次数:
0
<template> <div> </div> </template> <script> var self = this; export default { }; </script> // scoped 样式只在本组件使用 <style scoped> /** * 导入css样式组件 * @impo ...
分类:
其他好文 时间:
2021-06-02 20:55:34
阅读次数:
0
无序的数据集合:应用场景如微博相互关注,你关注的人也关注了xxxx(交集,并集等操作)1.intset 2hashtable intset 编码: 当存储的数据都为整型时其存储结构位intset 当存储的数据只要有一个不为整型时,其编码为hashtable ...
分类:
其他好文 时间:
2021-06-02 20:41:30
阅读次数:
0
1、打印this.$route 可以发现matched是可以提供面包屑的数据源,根据实际情况进行filter 2、在路由表(路由记录)中添加 meta const routes = [ // 第一级 { path: '/', name: 'Home', component: Home, meta: ...
分类:
其他好文 时间:
2021-06-02 20:41:11
阅读次数:
0
本场链接:Deltix Round, Spring 2021 (open for everyone, rated, Div. 1 + Div. 2) 闲话 E估计是补不了,看情况吧。 A. Game of Life 直接模拟,至多迭代$n-1$次,如果没有修改的操作就直接退出。 #include < ...
分类:
编程语言 时间:
2021-06-02 20:37:17
阅读次数:
0