Lambda表达式 Lambda 表达式(lambda expression)是一个匿名函数,也可以称为闭包,它允许把函数作为一个方法的参数(函数作为参数传递进方法中),使得代码变得非常简洁。 1. 语法 (parameters) expression 或者 (parameters) { state ...
分类:
其他好文 时间:
2020-02-11 00:34:20
阅读次数:
61
变量命名 变量名:字母 数字 下划线 美元符$ jquery: $ $.each() $ jQuery underscore( js的一个函数库) : _ _.each() 关键字 : if for 保留字 : class 推荐有意义的命名: buttonCancel button_cancel b ...
分类:
Web程序 时间:
2020-02-11 00:28:30
阅读次数:
96
Problem : Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, gi ...
分类:
其他好文 时间:
2020-02-10 00:20:24
阅读次数:
81
人生第一场 AtCoder,纪念一下 话说年后的 AtCoder 比赛怎么这么少啊(大雾 AtCoder Beginner Contest 154 题解 A Remaining Balls We have A balls with the string S written on each of th ...
分类:
其他好文 时间:
2020-02-09 22:16:59
阅读次数:
127
使用thyme leaf模板引擎的时候,如果某个片段出错,那么该片段后面所有都不再显示。 1.thymeleaf局部刷新: 前端: myOrders.html: js: 后端: 2.ajax发送数组对象给后端: 前端: html: <tr th:each="product:${pageInfo.li ...
分类:
编程语言 时间:
2020-02-09 18:28:53
阅读次数:
79
运行关联查询的例子时报错: org.apache.ibatis.builder.IncompleteElementException: Could not find result map com.me.mybatis.mapper.OrderMapper. at org.apache.ibatis. ...
分类:
移动开发 时间:
2020-02-09 11:59:24
阅读次数:
76
Problem : A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null. Return a ...
分类:
其他好文 时间:
2020-02-09 11:54:41
阅读次数:
76
Given a map of airline routes, you are supposed to check if a round trip can be planned between any pair of cities. Input Specification: Each input fi ...
分类:
其他好文 时间:
2020-02-09 00:40:37
阅读次数:
99
Python正则表达式指南 本文介绍了Python对于正则表达式的支持,包括正则表达式基础以及Python正则表达式标准库的完整介绍及使用示例。本文的内容不包括如何编写高效的正则表达式、如何优化正则表达式,这些主题请查看其他教程。 注意:本文基于Python2.4完成;如果看到不明白的词汇请记得百度 ...
分类:
编程语言 时间:
2020-02-08 22:03:37
阅读次数:
97
Flip game is played on a rectangular 4x4 field with two-sided pieces placed on each of its 16 squares. One side of each piece is white and the other o ...
分类:
其他好文 时间:
2020-02-08 22:02:58
阅读次数:
86