import functools def func(a1, a2): return a1+a2 # 通常调用方式 # ret = func(10, 20) # print(ret) # 偏函数方式,可以自动传递参数 new_func = functools.partial(func, 10) ret... ...
分类:
其他好文 时间:
2019-01-28 20:18:57
阅读次数:
144
7.1 字典 当索引不好用时a1=["我","你","她"]a2=["我很好","你很好","她很好"]print("我要说的是:",a2[a1.index("我")]) 7.1.1 创建和访问字典变成字典形式:dict1={"我":"我很好","你":"你很好","她":"她很好"}print(d ...
分类:
其他好文 时间:
2019-01-28 11:00:08
阅读次数:
195
数学相关的知识:集合函数极限,导数,微分,偏导数向量正弦余弦定理最小二乘法矩阵,正交矩阵集合:是指具有某种特定性质的事物的总体,组成集合的事物称为元素。?通常使用大写表示集合,小写表示元素;列举法,描述法?列举法:A={a1,a2,a3,...,an},a1∈A?描述法:B={x|x^2-1=0},{x|x具有的性质},方程的解即是组成B集合元素集合性质:?A,B若A的元素都是B集合的元素,则称A
分类:
其他好文 时间:
2019-01-28 01:04:08
阅读次数:
200
L1-009 N个数求和 (20 分) 本题的要求很简单,就是求N个数字的和。麻烦的是,这些数字是以有理数分子/分母的形式给出的,你输出的和也必须是有理数的形式。 输入格式: 输入第一行给出一个正整数N(≤100)。随后一行按格式a1/b1 a2/b2 ...给出N个有理数。题目保证所有分子和分母都 ...
分类:
其他好文 时间:
2019-01-27 22:09:41
阅读次数:
262
参考https://www.cnblogs.com/vb4896/p/6149022.html 1、线性基: 若干数的线性基是一组数a1,a2,...ana1,a2,...an,其中axax的最高位的11在第xx位。 通过线性基中元素xorxor出的数的值域与原来的数xorxor出数的值域相同。 2 ...
分类:
其他好文 时间:
2019-01-27 21:37:24
阅读次数:
174
题目链接:Salem and Sticks 题目原文 Salem gave you 𝑛n sticks with integer positive lengths 𝑎1,𝑎2,…,𝑎𝑛a1,a2,…,an. For every stick, you can change its lengt ...
分类:
其他好文 时间:
2019-01-27 21:33:58
阅读次数:
264
object Test { def main(args: Array[String]): Unit = { val a1 = new tt //实例化对象 println(a1.a) a1.f(2) println(a1.a) println(a1) } } //定义一个类叫tt class tt{... ...
分类:
其他好文 时间:
2019-01-27 16:34:54
阅读次数:
152
一、学习 一对多查询模式化数组公式: =INDEX(区域,SMALL(IF(条件,行号数组,4^8),ROW(A1))) 三键齐按(ctrl+shift+回车) 在具有多个符合条件的情况下,提取和匹配方法~ 我们需要解决三种类型的问题: 1,李商隐第一次出现时的B列值; 2,李商隐最后一次出现时的B ...
分类:
其他好文 时间:
2019-01-25 20:05:14
阅读次数:
1270
Given n non-negative integers a1, a2, ..., an , where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endp ...
分类:
其他好文 时间:
2019-01-25 16:01:28
阅读次数:
176
Let N be a positive integer. There is a numerical sequence of length 3N, a=(a1,a2,…,a3N). Snuke is constructing a new sequence of length 2N, a', by re ...
分类:
其他好文 时间:
2019-01-25 14:08:29
阅读次数:
114