码迷,mamicode.com
首页 >  
搜索关键字:first    ( 14115个结果
函数组合
纯函数和柯里化很容易写出洋葱代码,即一层套一层的方法h(g(f(x)))。 例如前面实现的一个功能:将一个数组的最后一个元素转换成大写字母:_.toUpper(_.first(_.reverse(array))),这种多次嵌套就是洋葱代码,为了解决这种状况,需要使用函数组合。 函数组合可以让我们把细 ...
分类:编程语言   时间:2021-03-17 15:09:09    阅读次数:0
pipioj 1023: 巨人排队(贪心)
http://www.pipioj.online/problem.php?id=1023 每次把当前的放在能排的当中最矮的一队里就ok 1 #define IO std::ios::sync_with_stdio(0); 2 #define bug(x) cout<<#x<<" is "<<x<<e ...
分类:其他好文   时间:2021-03-15 11:32:55    阅读次数:0
Northern Eurasia Finals Online 2020 L - Lookup Performance
处理了一年的边界问题 #include <bits/stdc++.h> using namespace std; const int N = 2e5 + 10; #define fi first #define se second #define sz(v) ((int)(v).size()) #d ...
分类:其他好文   时间:2021-03-15 11:18:36    阅读次数:0
ElasticSearch _bulk和_mget
_bulk api POST /_bulk 批量操作 POST _bulk { "index" : { "_index" : "movies", "_id" : "1" } } { "year" : 1994 } { "delete" : { "_index" : "movies", "_id" : ...
分类:其他好文   时间:2021-03-11 20:50:46    阅读次数:0
015.Python基础--模块
模块的使用: 这块内容本该紧接 面向对象和类的使用 模块的使用也是让程序更美观,具有很强的可读性,便于操作和改动 从本质上来说,它们都是为了更好的组织已经有的程序,以方便重复利用 一个py文件构成一个模块: 写一个first.py作为要使用的模块: def func(): print('this i ...
分类:编程语言   时间:2021-03-11 14:18:05    阅读次数:0
python中将实参变为可选项
1、 >>> def a(first,meddle,last): b = f"{first} {meddle} {last}" return b.title() >>> a("aaa","bbb","ccc") 'Aaa Bbb Ccc' >>> a("aaa","bbb") ## 少一个实参报错 ...
分类:编程语言   时间:2021-03-10 13:42:12    阅读次数:0
伪类选择器和伪元素选择器的区别
## 伪类:伪类用于DOM树之外的消息,或是不能简单选择器进行表示的信息。前者包含那些匹配指定状态的元素,比如:visited,:active ;后者包含那些满足一定逻辑条件的DOM树中的元素,比如:first-child,:fitst-of-type,:target ## 伪元素:伪元素为DOM树 ...
分类:其他好文   时间:2021-03-10 13:12:45    阅读次数:0
1065 A+B and C (64bit) (20 分)
题目描述 1065 A+B and C (64bit) (20 分) Given three integers A, B and C in [?], you are supposed to tell whether A+B>C. Input Specification: The first line ...
分类:其他好文   时间:2021-03-10 13:11:02    阅读次数:0
elementui 调整确认和取消按钮位置
添加全局样式: .el-message-box__btns .el-button:first-child { transform: translateX(66px); } .el-message-box__btns .el-button:last-child { transform: transla ...
分类:其他好文   时间:2021-03-09 13:30:14    阅读次数:0
CSS3新增选择器
CSS3新增选择器 :first-child 表示第一个子元素是... :last-child :nth-child(numberloddleven/倍数) :first-of-type 表示第一个子元素 :last-of-type :nth-of-type (numberloddleven/倍数) ...
分类:Web程序   时间:2021-03-09 13:18:32    阅读次数:0
14115条   上一页 1 ... 7 8 9 10 11 ... 1412 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!