time limit per test2 secondsmemory limit per test256 megabytesinput: standard inputoutput: standard output Recently, Norge found a string s=s1s2…sn co ...
分类:
其他好文 时间:
2019-12-21 00:15:46
阅读次数:
68
手动协程操作: # pip install gevent from greenlet import greenlet def test(): print('He ') gr2.switch() print('a ') gr2.switch() def test2(): print('is ') gr ...
分类:
编程语言 时间:
2019-12-17 14:51:21
阅读次数:
100
两个文件的情况: 制作补丁: $ diff test1.c test2.c > test.patch 给test1.c打补丁: $ patch test1.c < test.patch 还原: $ patch -R test1.c < test.patch 两个文件夹的情况: 制作补丁: $ dif ...
分类:
系统相关 时间:
2019-12-14 11:53:08
阅读次数:
112
有如下一个文件,内容如下 { "test1": "/root/test/test1.template", "test2": "/root/test/test2.template", "test3": "/root/test/test3.template", "test4": "/root/test/ ...
分类:
编程语言 时间:
2019-12-12 12:45:00
阅读次数:
96
操作方法 创建两个数据库test1 test2 同一个host下面 分别在两个数据库中创建表 Table structure for test_db DROP TABLE IF EXISTS ; CREATE TABLE ( int(11) NOT NULL AUTO_INCREMENT, varc ...
分类:
数据库 时间:
2019-12-12 12:44:33
阅读次数:
113
列表 #列表 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