D. Vasya And The Matrix time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Now Vasya is taking ...
分类:
其他好文 时间:
2018-08-05 00:31:39
阅读次数:
146
with open("testt","r") as f1: list1 = f1.readlines() print(list1) list1 = set(list1) with open("test2","r") as f2: list2 = f2.readlines() print(list2)... ...
分类:
编程语言 时间:
2018-07-30 00:34:02
阅读次数:
153
JDBC事务 String URL="jdbc:sqlserver://localhost:1433;databaseName=test2"; String USER="sa"; String PASSWORD="sapassword"; try { Class.forName("com.micro ...
分类:
数据库 时间:
2018-07-29 16:25:21
阅读次数:
164
说明:待执行测试用例放到"d:\\Python37\\testcase",文件命名格式可改成test1.py,test2.py等等,文件名不要有空格,否则识别不了。 #coding:utf-8import unittestimport HTMLTestRunnerdef all_case(): #待 ...
分类:
Web程序 时间:
2018-07-29 11:48:38
阅读次数:
687
D. Xenia and Bit Operationstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output D. Xenia and Bit Ope ...
分类:
其他好文 时间:
2018-07-29 00:47:40
阅读次数:
147
我们知道在ES6中,引入了箭头函数,其本质就是等同有ES5中的函数。类似于下面的写法: let test1=() => “abc”; let test2=() => { return “abc”}; let sum=(a,b) => a+b; 比如上面的3个ES6的箭头函数的写完,如果用ES5就像下 ...
分类:
其他好文 时间:
2018-07-27 19:29:25
阅读次数:
148
#!/bin/bash# configure networkcat >/etc/sysconfig/network-scripts/ifcfg-eth0>/etc/fstabmkdir /etc/yum.repos.d/bak mv /etc/yum.repos.d/Cen* /etc/yum.re... ...
分类:
其他好文 时间:
2018-07-22 20:01:47
阅读次数:
158
#面向对象:特点:类(class)#面向过程:过程(def)#函数式编程:函数(def)#定义函数:def func1():# """test....""" print('in the func1') return 0#定义过程def func2() """test2..........""" pr ...
分类:
其他好文 时间:
2018-07-22 17:04:50
阅读次数:
116
1.首先看一个例子: 情形1输出: 情形2输出: 第二种情况输出对应Test2的初始化列表,直接调用拷贝构造函数初始化test1,省去了调用默认构造函数的过程。所以一个好的原则是,能使用初始化列表的时候尽量使用初始化列表。提高了性能。 2. 除了性能问题之外,有些时场合初始化列表是不可或缺的,以下几 ...
分类:
编程语言 时间:
2018-07-18 14:10:15
阅读次数:
197
1 package test; 2 3 public class test2 { 4 public static void main(String[] args) { 5 int sum = 0; 6 int count = 1; 7 while (count < 100) { 8 if (coun... ...
分类:
编程语言 时间:
2018-07-17 21:41:38
阅读次数:
156