列表 #列表 names = ['test1', 'test2', 'test3', 'test4', 'test5'] print(names) print(names[0]) print(names[1:3]) #切片 print(names[0:3]) print(names[:3]) #取最 ...
分类:
其他好文 时间:
2019-12-11 13:16:19
阅读次数:
116
public static void test2() { String str = "张三:13539558064,李四:15626829748,赵六:13718952204"; Pattern p = Pattern.compile("1[345678]\\d{9}"); Matcher m = ...
分类:
编程语言 时间:
2019-12-09 12:08:10
阅读次数:
311
import java.util.Scanner; public class Test2 { public static void main(String[] args) { //局部变量使用前一定要初始化 int lowCount = 0,upperCount=0,numCount=0,other ...
分类:
编程语言 时间:
2019-12-03 21:35:01
阅读次数:
184
import pymysql con = pymysql.connect(host="127.0.0.1",user="root",passwd="root",db="test") cursor = con.cursor() sql = "insert into test2(name,gender) ...
分类:
数据库 时间:
2019-12-03 01:55:41
阅读次数:
111
docker网络 Docker 允许通过外部访问容器或容器互联的方式来提供网络服务。 端口映射允许外部访问容器 --link 容器互联 容器桥接网络 1.通过--link容器通信,给test2添加一个hosts解析记录 docker run -d --name test2 --link test1 ...
分类:
其他好文 时间:
2019-11-28 13:44:30
阅读次数:
55
public class CompletableServiceTest { public static void main(String[] args) throws ExecutionException, InterruptedException { // test1(); // test2(); ...
分类:
其他好文 时间:
2019-11-27 01:12:45
阅读次数:
102
增加:db.collection_name.insert删除:db.collection_name.remove更新:db.collection_name.update查询:db.collection_name.find().pretty()操作实例:1.创建数据库usetest22.显示当前所有数据库showdbs3.刚创建的test2不会显示出来,需要往里面插入一些数据db.test2.ins
分类:
数据库 时间:
2019-11-26 09:28:58
阅读次数:
86
public class CompletableFutureTest { public static void main(String[] args) throws Exception { // test2(); // test1(); // test3(); test4(); } //采用了cal ...
分类:
其他好文 时间:
2019-11-25 16:48:34
阅读次数:
46
目录结构: 引用图片: body { /*background: red;*/ /*background: url("../img/test2.jpg"); 小图片*/ background: url("../img/test.jpg"); /*大图片*/ } 安装url-loader和file-l ...
分类:
Web程序 时间:
2019-11-25 15:23:58
阅读次数:
71
首先,有一份Ini文件 Allconfiguration1.ini [ITEMS] item1=1 item2=2 item3=3 item4=4 [ITEM1] test1=aaa [ITEM2] test2=bbb [ITEM3] test3=ccc [ITEM4] test4=ddd 然后读取 ...
分类:
编程语言 时间:
2019-11-18 18:10:32
阅读次数:
85