插入importimport unittestd = dir (unittest)打印unittestprint(d) 打印结果:E:\python\python.exe F:/test_erp_post_1/test_erp_post/case/1.py['BaseTestSuite', 'Fun ...
分类:
其他好文 时间:
2020-11-18 12:33:16
阅读次数:
5
1 #include<bits/stdc++.h> 2 #define ll long long 3 #define INF 1e17 4 using namespace std; 5 const int N = 2e5 + 10; 6 ll n, k; 7 ll a[N]; 8 9 bool ch ...
分类:
其他好文 时间:
2020-11-17 12:50:15
阅读次数:
11
//c++实现雅克比迭代式 #include<iostream> #include<iomanip> #include<string> #include<vector> using namespace std; //函数求数组中的最大值 double MaxOfList(vector<double> ...
分类:
编程语言 时间:
2020-11-13 12:49:52
阅读次数:
9
快CSP了写点联赛题水水博客不过分吧…… 首先立方的期望和显然不是期望和的立方,那么我们考虑从一个差分的角度来看 设$x_1,x_2,x_3$分别表示到当前位置为止,连续长度的期望和,平方期望和,立方期望和 考虑若当前位置为$1$,对立方期望和的贡献为$(x+1)3=x3+3x^2+3x+1$,乘上 ...
分类:
其他好文 时间:
2020-11-12 14:23:34
阅读次数:
5
题目 给你$n$个非负整数$a_1,a_2,...,a_n$每个数代表坐标中的一个点$(i, a_i)$。在坐标内画$n$条垂直线,垂直线$i$的两个端点分别为$(i, a_i)\(和\)(i, 0)$。找出其中的两条线,使得它们与$x$轴共同构成的容器可以容纳最多的水。 说明:你不能倾斜容器。 示 ...
分类:
其他好文 时间:
2020-11-10 11:14:35
阅读次数:
8
1.增(1)在列表末尾增:列表名.append(‘新增元素‘)。比如:names.append(‘lihua‘)(2)在列表中间插入:列表名.insert(位置,‘新增元素’)。比如:names.insert(0,‘xiaoming‘)2.删(1)已知位置,删除元素:del列表名[位置]。比如:delnames[0](2)已知位置(或者删除最后一个元
分类:
编程语言 时间:
2020-11-10 11:05:58
阅读次数:
11
> wget http://pecl.php.net/get/yaf-3.0.8.tgz > sudo tar -zxvf yaf-3.0.8.tgz > cd yaf-3.0.8 > sudo /usr/bin/phpize7.1 > sudo ./configure --with-php-con ...
分类:
系统相关 时间:
2020-11-10 10:50:25
阅读次数:
12
判断语句 printf的格式输出 可以使用%5d这样来补空格,还有就是%05d这样子可以补0,还有%-5d是从右边补0 int a = 1,b=12,c=123; printf("%5d\n",a); // 1 printf("%05d\n",a); // 00012 printf("%-5d\n" ...
分类:
编程语言 时间:
2020-11-08 17:27:35
阅读次数:
17
https://www.acwing.com/problem/content/description/135/ 优先队列,每次将最长的蚯蚓取出来,切开后减去当前的偏移量,再放回队列 但 \(m\) 的范围是 $7e6$,显然需要线性做法 线性做法,那就需要考虑一下蚯蚓长度的单调性了, 可以证明,如果 ...
1.confusion_matrix 理论部分见https://www.cnblogs.com/cxq1126/p/12990784.html#_label2 1 from sklearn.metrics import confusion_matrix 2 3 #if y_true.shape=y_ ...
分类:
其他好文 时间:
2020-11-06 02:47:11
阅读次数:
41