在一个项目中,使用了listview和3个include 布局。 结果发现listview为 wrap_content 时,无法撑开布局。但是所有布局并未占满屏幕。另外,在include中调用软键盘时,listview依然不动,导致编辑内容的位置比较别扭。 反复试验,总结就是为listview设置高 ...
分类:
移动开发 时间:
2019-08-18 00:10:43
阅读次数:
111
https://sebastianraschka.com/Articles/2014_python_scope_and_namespaces.html https://stackoverflow.com/questions/4020419/why-arent-python-nested-functi ...
分类:
编程语言 时间:
2019-08-11 00:45:20
阅读次数:
90
Table of Contents Python Lists Lists Are Ordered Lists Can Contain Arbitrary Objects List Elements Can Be Accessed by Index Lists Can Be Nested Lists ...
分类:
其他好文 时间:
2019-08-11 00:21:04
阅读次数:
169
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayWrapper': Invocation of init method failed; nested excep ...
分类:
其他好文 时间:
2019-08-10 19:18:45
阅读次数:
194
学习编程学习到一定程度不可避免的需要去学习更深层次的东西,虽然在之前的学习中接触到一些设计模式,但是自己没有能够好好总结,以至于没能体会到更高深的编程乐趣。 单例模式要点为以下几点 1.单例类不可继承 2.私有化构造函数 3.公开静态化实例获取方法 一,首先是最熟悉的简单的单例模式 线程安全:非线程 ...
分类:
其他好文 时间:
2019-07-31 20:25:06
阅读次数:
104
题意:给你两行数据,代表每个哑铃的重量,让你移动哑铃使相同重量的哑铃再一起,求移动的哑铃中最大的哑铃重量。 思路:二分答案,check函数如果返回1,说明可能存在更小的重量,如果返回是0,说明比真实值大。 check函数里,遍历一遍数组,如果小于的等于mid的数,continual就行。如果第一次发 ...
分类:
其他好文 时间:
2019-07-31 18:09:24
阅读次数:
90
ElasticSerch 的连接查询有两种方式实现 ElasticSerch 的连接查询有两种方式实现 nested parent和child关联查询 nested parent和child关联查询 nested nested 存储结构 nested的方式和其他字段一样,在同一个type里面存储,以 ...
分类:
其他好文 时间:
2019-07-29 09:30:37
阅读次数:
126
阅读Tacotron2源码 之 Python进阶 1. Non Local Variable with Nested Function 2. Closure in Python 3. Decorator 1. Non Local Variable with Nested Function & 160 ...
分类:
编程语言 时间:
2019-07-25 23:34:12
阅读次数:
155
Jim has a balance and N weights. (1≤N≤20) The balance can only tell whether things on different side are the same weight. Weights can be put on left s ...
分类:
其他好文 时间:
2019-07-19 22:31:57
阅读次数:
129
Dubbo是一个分布式服务框架,致力于提供高性能和透明化的RPC远程服务调用方案,以及SOA服务治理方案。简单的说,dubbo就是个服务框架,如果没有分布式的需求,其实是不需要用的,只有在分布式的时候,才有dubbo这样的分布式服务框架的需求 ...
分类:
其他好文 时间:
2019-07-19 10:59:43
阅读次数:
112