演示 代码 from PyQt5.QtWidgets import * import sys class pushButton(QWidget): def __init__(self): super(pushButton,self).__init__() # 对方法进行调用 self.initUI( ...
分类:
其他好文 时间:
2021-06-09 15:30:07
阅读次数:
0
docker删除镜像报错处理,Error response from daemon: conflict: unable to delete a945e7fd5401 (cannot be forced) - image has dependent child images ,删除为none的镜像 ...
分类:
其他好文 时间:
2021-06-05 18:28:16
阅读次数:
0
开门见山。在一片空白里,利用自己看的理论知识,进行逐一枚举并验证。只有当你能在一篇空白里利用所学,运用所思,尽可能的归纳并以某种形式表达出来,或是策划方案,或是代码,或是文章,这时才能在理解之上建立记忆,而不是在虚无之中制造懵懂。 //检测继承性,super的用法,方法的重写 public clas ...
分类:
其他好文 时间:
2021-06-05 18:22:04
阅读次数:
0
SharedPreference是一种轻量级的内部数据存储方式,采用Key/value的形式,只运行存储一些简单的数据,比如int,float等类型 首先先创建SharedPreference package com.example.sharedpreference; import androidx ...
分类:
移动开发 时间:
2021-06-04 19:53:37
阅读次数:
0
1. 我们在 React class Component 绑定事件时,经常会通过 bind(this) 来绑定事件 class Home extends React.Component{ constructor( props ){ super( props ); } handleClick(even ...
分类:
其他好文 时间:
2021-06-03 18:04:10
阅读次数:
0
问题1:harbor服务不能正常提供? Error response from daemon: Get http://hub.atguigu.com/v2/: dial tcp 192.168.66.100:80: connect: connection refused 原因分析:harbor服务器 ...
分类:
其他好文 时间:
2021-06-03 17:53:13
阅读次数:
0
1.安装bind9 sudo apt install bind9 2.配置/etc/bind/named.conf.options文件 sudo nano /etc/bind/named.conf.options 内容如下: // cat /etc/bind/named.conf.options o ...
分类:
系统相关 时间:
2021-06-02 20:57:29
阅读次数:
0
1.自定义异常 public class CreateFailedException extends RuntimeException{ public CreateFailedException(String errMsg) { super(errMsg); } /** * Construct a ...
分类:
其他好文 时间:
2021-06-02 19:45:45
阅读次数:
0
1、定义一个执行器抽象类 public abstract class AbstractExecutor<T> { /** * 执行业务逻辑 */ public void doExecute(T t) { try { // 初始化 this.init(t); // 执行逻辑 this.process( ...
分类:
其他好文 时间:
2021-06-02 13:14:08
阅读次数:
0
在python中,关于类的继承有很多场景和知识点。今天聚焦在一个场景:有一个父类A,类中定义了某个问题中的通用属性和方法(即后面的子类都需要用到),在子类B中需要继承这些属性和方法,同时添加自己特有的属性和方法,应该如何实现? 在子类中,继承并初始化父类属性的方式有两种: 显示调用父类的初始化函数, ...
分类:
其他好文 时间:
2021-06-02 12:24:54
阅读次数:
0