ICode9

精准搜索请尝试: 精确搜索
  • jQuery和bootstrap2022-05-02 23:01:26

    jQuery操作标签 jQuery事件操作 jQuery动画效果 前端第三方框架 jQuery操作标签 ''' jQuery代码查找标签绑定的变量名推荐使用$xxxEle ''' # addClass() 增加css类名 相当于原生js中的classList.add() var $divEle = $('div').first() $divEle.addClass('c3') S.f

  • 《Effective Python》笔记 第五章-类与接口2022-05-01 13:03:34

    阅读Effective Python(第二版)的一些笔记 目录第37条 用组合起来的类来实现多层结构,不要用嵌套的内置类型第38条 让简单的接口接受函数,而不是类的实例hook(钩子函数)第39条 通过@classmethod多态来构造同一体系中的各类对象第40条 通过super初始化超类直接调用父类的``init`使用s

  • 100-CH32V307(WCH单片机)学习开发-GPIO电平检测,引脚中断2022-04-30 03:31:06

    <p><iframe name="ifd" src="https://mnifdv.cn/resource/cnblogs/LearnCH32V307VCT6" frameborder="0" scrolling="auto" width="100%" height="1500"></iframe></p>   在GPIO设置为输出的状态

  • 简单实例分析objdump反汇编用法2022-04-28 20:03:26

      objdump命令是用查看目标文件或者可执行的目标文件的构成的gcc工具。 1. 准备代码hello.c 1 #include <linux/module.h> 2 #include <linux/init.h> 3 #include <linux/kernel.h> 4 5 MODULE_LICENSE("GPL"); 6 MODULE_AUTHOR("baoli"); 7 MODULE_DE

  • ngx——内存池管理2022-04-28 16:33:19

    1. 有哪些内存池 init_cycle.pool : 用于初始化时使用,初始化后一定被释放 196 main(int argc, char *const *argv) 253 init_cycle.pool = ngx_create_pool(1024, log); 292 cycle = ngx_init_cycle(&init_cycle); cycle->pool : 伴随整个工作周期,直到 重新加载

  • C++(类与对象2)2022-04-27 12:33:06

    (1)内联成员函数 (2)成员函数地重载及其缺参数 (3)类与结构体 (4)隐含地this指针 1、内联成员函数   ¥回顾:     内联函数---------提高效率     编译的时候将代码直接嵌入到调用的地方,从而减少了函数调用的开销。(程序体积增大,以空间换时间)     内联函数一般短小,内联函数仅仅

  • servlet生命周期的学习与总结2022-04-26 22:00:22

    从学习的初步来了解到,sevlet的生命周期分为以下几点: Servlet 初始化后调用 init () 方法。 Servlet 调用 service() 方法来处理客户端的请求。 Servlet 销毁前调用 destroy() 方法。 最后,Servlet 由 JVM 的垃圾回收器进行垃圾回收。   (一)init方法只调用一次,在创建sevlet

  • npm 与 yarn2022-04-26 21:03:27

    一 npm的使用 init  install    run    / add npm i -g yarn //查看版本 yarn -version //创建文件夹 md yarn //进入 cd yarn //初始化 yarn init //运行脚本 yarn run //查看列表 yarn config list //显示列表信息 yarn info <packageName> //安装安装包 yarn install ya

  • WSL2卸载fish后无法登录问题的简单解决2022-04-26 21:00:07

    问题环境 Windows11 WSL2 OpenSUSE Tumbleweed 问题描述 在执行sudo zypper remove fish之后,退出了终端界面,再次进入时终端界面报错如下。 <3>init: (29715) ERROR: CreateProcessEntryCommon:528: execvpe /usr/bin/fish failed 2 <3>init: (29715) ERROR: CreateProcessEntryCom

  • ubuntu18.04(WSL) 更新redis 6.2.62022-04-26 15:01:57

    安装 apt install tcl wget https://download.redis.io/redis-stable.tar.gz tar -xzvf redis-stable.tar.gz cd redis-stable make all make install 配置redis自动启动 在redis-stable目录下复制启动脚本 sudo cp utils/redis_init_script /etc/init.d/redis_6379 在编辑启动

  • Vue搭建3.X以上版本可能遇到的问题2022-04-24 02:31:06

    vue-cli 卸载2.X升级3.X的总结 在更新vue-cli2.9.3 的时候,遇到问题:卸载不掉旧版本2X 官网给的信息是: Vue CLI 的包名称由 vue-cli 改成了 @vue/cli。 如果你已经全局安装了旧版本的 vue-cli (1.x 或 2.x),你需要先通过 npm uninstall vue-cli -g 或 yarn global remove vue-cl

  • ubuntu: Network error: Connection refused2022-04-23 23:00:46

      1、问题: Network error: Connection refused     2、解决方法 root@DESKTOP-1N42TVH:~# /etc/init.d/ssh status * sshd is not running     3、 root@DESKTOP-1N42TVH:~# /etc/init.d/ssh restart * Restarting OpenBSD Secure Shell server sshd

  • 线程继承threading.Thread2022-04-23 22:31:45

    import threadingimport timeimport requestsclass MyThreading(threading.Thread): def __init__(self, url): self.url = url # 给run方法传参,只能通过 self的属性 super().__init__() # 重写__init__方法一定要调用父类方法 def run(self): for

  • flask shell 执行db.create_all()产生错误 AttributeError: can’t set attribute2022-04-23 22:01:07

    在运行命令:python wsgi.py报错: Traceback (most recent call last): File "wsgi.py", line 5, in <module> app = create_app() File "C:\Users\kegek\Desktop\flask_tencent\flaskr\__init__.py", line 52, in create_app dbchemy.cr

  • 第七十二篇:Vue组件的props2022-04-22 20:04:09

    好家伙,   1.组件的props props是组件的自定义属性,在封装通用组件的时候,合理的使用props可以极大的提高组件的复用性   来假设一下,如果我们需要两个组件分别显示不同的值 目录结构如下:     HelloWorld.vue中, <div> <h2>我的init值为{{ init }}</h2> </div> </

  • Pod状态和生命周期管理2022-04-22 15:00:07

    Pod状态和生命周期管理 Pod概览 理解Pod Pod是Kubernetes中可以创建和部署的最小单位。Pod代表着集群中运行的进程。 Pod中封装着应用的容器,存储、独立的网络IP,管理容器如何运行的策略选项。Pod代表着部署的一个单位:Kubernetes中应用的一个实例,可能由一个或多个容器组合在一起共享

  • A133+Android10 关闭串口打印2022-04-21 15:02:44

    修改longan/device/config/chips/a133/configs/default/env.cfg: diff --git a/configs/default/env.cfg b/configs/default/env.cfgindex 2b5cac4..0e1f265 100644--- a/configs/default/env.cfg+++ b/configs/default/env.cfg@@ -6,7 +6,8 @@ console=ttyS0,115200 nand_root=

  • 更换emacs的主题为molokai2022-04-21 07:34:46

    目的:把emacs主题更换为一个 molokai 样式。 地址: https://github.com/hbin/molokai-theme  emacs的配置文件 wsl2的debian: ~/.emacs.d/init.el  windows下: C:\Users\jack\AppData\Roaming\.emacs.d\init.el  操作: 1、下载molokai-theme.el 并放到 ~/.emacs.d/themes/ 2、编

  • python中的self和__init__()2022-04-20 23:33:31

    一、self 直观理解: 如果不加self,表示是类的一个属性(可以通过"类名.变量名"的方式引用);加了self,表示类的实例的一个属性(可以通过"实例名.变量名"的方式引用)。如: class Test(object): val = 100 def __init__(self): self.val = 200 test = Test() test.val #输出200

  • centos关机与重启命令2022-04-20 00:35:47

    Linux centos重启命令: 1、reboot 普通重启 2、shutdown -r now 立刻重启(root用户使用) 3、shutdown -r 10 过10分钟自动重启(root用户使用) 4、shutdown -r 20:35 在时间为20:35时候重启(root用户使用) 如果是通过shutdown命令设置重启的话,可以用shutdown -c命令取消重启 Linux c

  • k8s:error: a container name must be specified for pod mysql-0, choose one of: [mysql xtrabackup] or2022-04-18 15:04:06

    提示内容:     提示原因; 因为一个pod里面有多个容器,需要指定具体容器名称  

  • GUI-Swing-窗口2022-04-18 15:01:51

    窗口Jframe 初始化窗口 inti(); 方法1:(优) 1 package com.luckylu.gui; 2 3 import javax.swing.*; 4 import java.awt.*; 5 6 public class JFrameDemo { 7 // init(); 初始化 8 public void init(){ 9 //顶级窗口 10 JFrame jf = new JFrame

  • Python-day01课下练习一(类)2022-04-18 08:31:15

    类的定义 import urllib.request ··· class MyClass: '''一个简单的实例类''' i = 12345 def f(self): return 'hello,world!' ··· 实例化类 x = MyClass() 访问类的属性和方法 print("MyClass 类的属性 i 为:",x.i) print("MyClass 类的方法 f 的输出为:&q

  • linux之模块加载2022-04-17 20:01:11

    Linux有许多功能是通过模块的方式,在需要时才载入kernel。如此可使kernel较为精简,进而提高效率,以及保有较大的弹性。这类可载入的模块,通常是设备驱动程序。 语法 insmod [-fkmpsvxX][-o <模块名称>][模块文件][符号名称 = 符号值] 参数说明: -f  不检查目前kernel版本与模块编译时

  • # shell脚本(2)正则表达式2022-04-17 16:35:37

    一、基础正则表达式 # 元字符 ^行首定位符 [root@init-02 ~]# grep "root" /etc/passwd root:x:0:0:root:/root:/bin/bash operator:x:11:0:operator:/root:/sbin/nologin [root@init-02 ~]# grep "^root" /etc/passwd root:x:0:0:root:/root:/bin/bash $行尾定位符 love$ .

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有