Docker入门介绍 架构图 将Image从Registry下载到DockerHost,DockerHost生成该镜像的Container,在Container中就可以正常使用了 Docker三要素:Image、Container、Docker Registry Images Docker 镜像是一 ...
分类:
其他好文 时间:
2021-04-16 12:08:27
阅读次数:
0
1. 虚函数中存在默认值时,需要注意其函数调用中默认值: class cbase { public: virtual void func(int a = 10) { cout << "this is cbase func:" << a << endl; } }; class csub : publi ...
分类:
编程语言 时间:
2021-04-16 12:03:44
阅读次数:
0
Wireshark是非常流行的网络封包分析软件,可以截取各种网络数据包,并显示数据包详细信息。常用于开发测试过程各种问题定位。本文主要内容包括: 1、Wireshark软件下载和安装以及Wireshark主界面介绍。 2、WireShark简单抓包示例。通过该例子学会怎么抓包以及如何简单查看分析数据 ...
分类:
其他好文 时间:
2021-04-16 11:55:12
阅读次数:
0
# 捕获异常,异常之后,代码不再执行 try : a = 1/0 except ZeroDivisionError as e : print('出异常了,原因:',e) except IOError as e: print('IO异常,原因:', e) except ValueError as e: ...
分类:
编程语言 时间:
2021-04-16 11:51:04
阅读次数:
0
什么是柔性别数组 结构中的最后一个元素允许是未知大小的数组,这就叫做柔性数组成员 例如 typedef struct st_type { int i; int a[0]//柔性数组成员可以调整数组大小 }type_a; 使用方法 struct S { int n; int arr[]; }; int ...
分类:
编程语言 时间:
2021-04-16 11:50:27
阅读次数:
0
字符串与列表的相互转化 字符转列表 str_ = 'sky' str_list = list(str_) print(str_list) # ['s', 'k', 'y'] 列表转字符 str_u = ''.join(str_list) print(str_u) # sky ...
分类:
编程语言 时间:
2021-04-16 11:42:44
阅读次数:
0
datagrip 连接elasticsearch 默认该driver加载项 1.去maven仓库下载https://mvnrepository.com/artifact/org.elasticsearch.plugin/x-pack-sql-jdbc 下载jar包 2. 把elasticsearch ...
分类:
其他好文 时间:
2021-04-16 11:41:50
阅读次数:
0
1、查找 command + F 2、查找并替换 选中要替换的文字 再 command + options + F 3、竖状区域部分替换 鼠标点中替换字段的开头或者结尾,按options + shift 上下拖动 并左右拖动 一键编辑替换 或者复制替换 ...
分类:
系统相关 时间:
2021-04-15 12:47:32
阅读次数:
0
效果 代码 1 <Window x:Class="WpfApp12.MainWindow" 2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 3 xmlns:x="http://schemas.microsoft. ...
今天来配置Python。废话少说,以前配置过感觉还是很简单的。 1.首先还是得有py解释器(这里略过,直接去官网下载即可) 注:如果你在使用安装程序安装Python的时候没有勾选 Add Python x.x to PATH,还需要配置环境变量。 2.打开Vscode并创建Python工作区。 在下 ...