从以上代码可以看出: values方法可以获取number字段的字典列表。 values_list可以获取number的元组列表。 values_list方法加个参数flat=True可以获取number的值列表。 ...
分类:
其他好文 时间:
2017-09-26 16:01:52
阅读次数:
236
3d舞台 设置 perspective(景深): length, 可以设置overflow:hidden 3d舞台下 -> 3d元素容器 设置 transform-style: preserve-3d,不可设置 overflow: hidden(其如同transform-style:flat;) 隐 ...
分类:
Web程序 时间:
2017-09-26 14:51:35
阅读次数:
185
View view = LayoutInflater.from(mContext).inflate(R.layout.help_recycler, parent, false); //动态设置View高度,解决‘查看更多’上下偏移问题 final float scale = mContext.get ...
分类:
其他好文 时间:
2017-09-25 09:48:59
阅读次数:
526
1 def toFlatMap(input:List[Any],result:List[Int]):List[Int]=input match{ 2 case h::t=>h match {case e:Int=>toFlatMap(t,e::result) 3 case x:List[Any] =... ...
分类:
编程语言 时间:
2017-09-24 20:29:44
阅读次数:
169
for{ i <- 1 util n j <- 1 util i if isPrime(x+y)}yield(i,j) (1 until n)flatMap(i=> (1 until i)filter(j=> isPrime(i+j)) map(j=>(i,j))) i从1到n变化,对每一个i进行f ...
分类:
其他好文 时间:
2017-09-23 10:41:16
阅读次数:
124
fetch实现将多台服务器的同名文件拷贝到本地且不覆盖 ...
分类:
其他好文 时间:
2017-09-22 13:12:16
阅读次数:
248
自己写一遍线程的时候头脑非常简单,直接在子线程里tv.setText("After Update:"+i); 你怕是个猪哦^(* ̄(oo) ̄)^ 主线程和子线程不进行交互你怎么会看得到哦 傻逼 ...
分类:
编程语言 时间:
2017-09-22 10:01:58
阅读次数:
250
namespace ConsoleApplication1 { class Program { static void Main(string[] args) { //1.普通转换 Name name1 = new Name() { FirstName = "L", LastName = "jz" ... ...
分类:
移动开发 时间:
2017-09-21 23:32:19
阅读次数:
598
环境搭建好后,接下来我们先来了解一下requests的一些简单使用,主要包括: 本节首先来了解一下requests库中如何发送get请求: 一、看下方法定义: 1、到官方文档去了下requests.get()方法的定义,如下: 2、点击右上角的【source】,看一下它的源码如下: 看到最后一行re ...
分类:
编程语言 时间:
2017-09-20 12:07:48
阅读次数:
319
githup:https://github.com/JulienGenoud/android-percent-support-lib-sample 下面是使用方法: Android Percent Support Lib Sample I made a sample of the new perce ...
分类:
移动开发 时间:
2017-09-18 18:19:44
阅读次数:
294