码迷,mamicode.com
首页 >  
搜索关键字:test2 unit2    ( 885个结果
Yet Another Broken Keyboard
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
Python 协程
手动协程操作: # 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
linux下补丁制作和使用方法
两个文件的情况: 制作补丁: $ 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
python:json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes问题解决
有如下一个文件,内容如下 { "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
php mysql_connect 在同一host下多数据库mysql_select_db()的bug .
操作方法 创建两个数据库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
2-6
列表 #列表 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
java 正则提取字符串中的电话号码
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
sql
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网络 Docker 允许通过外部访问容器或容器互联的方式来提供网络服务。 端口映射允许外部访问容器 --link 容器互联 容器桥接网络 1.通过--link容器通信,给test2添加一个hosts解析记录 docker run -d --name test2 --link test1 ...
分类:其他好文   时间:2019-11-28 13:44:30    阅读次数:55
885条   上一页 1 ... 9 10 11 12 13 ... 89 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!