深度解析Scala 语法精细篇 1.安装Scala: 1.将安装包解压 2.配置环境变量 E:\program\scala 2.11.8 系统变量中配置:变量名:SCAL_HOME 变量值:E:\program\scala 2.11.8 确定 编辑环境变量中:新建 == %SCALA_HOME%/b ...
分类:
其他好文 时间:
2018-10-07 22:04:31
阅读次数:
266
import numpy as np import tensorflow as tf y_pred = np.array([[1], [2], [3]],dtype=np.float32) y_real = np.array([[1], [1], [1]]) bias = np.array([1,2 ...
分类:
其他好文 时间:
2018-10-07 00:38:03
阅读次数:
395
上面的程序定义了一个结构体 Square 和一个接口 Shaper,接口有一个方法 Area()。 在 main() 方法中创建了一个 Square 的实例。在主程序外边定义了一个接收者类型是 Square 方法的 Area(),用来计算正方形的面积:结构体 Square 实现了接口 Shaper ...
分类:
其他好文 时间:
2018-10-04 16:41:22
阅读次数:
144
On an infinite number line (x-axis), we drop given squares in the order they are given. The i-th square dropped (positions[i] = (left, side_length)) i ...
分类:
其他好文 时间:
2018-10-04 16:02:28
阅读次数:
158
Given any string of N (>=5) characters, you are asked to form the characters into the shape of U. For example, "helloworld" can be printed as: h d e l ...
分类:
其他好文 时间:
2018-10-02 17:27:27
阅读次数:
108
LeakCanary 内存泄漏 监测 性能优化 简介 原理 GitHub:https://github.com/square/leakcanary Demo地址:https://github.com/baiqiantao/LeakCanaryTest.git 目录 目录简单使用更多介绍自定义 Lea... ...
分类:
其他好文 时间:
2018-10-02 13:58:32
阅读次数:
442
使用LeakCanary检测内存泄露 翻译 原文:https://academy.realm.io/cn/posts/droidcon-ricau-memory-leaks-leakcanary/ GitHub:https://github.com/square/leakcanary Nov 18 ... ...
分类:
其他好文 时间:
2018-10-01 16:11:04
阅读次数:
175
Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n. 1. DP Set an array, first ...
分类:
其他好文 时间:
2018-09-29 01:19:26
阅读次数:
223
建模很容易就能说清楚,但我一直想不出来。 要问为什么的话可能是因为这题要先预处理出来所有正方形,而我没做过要预处理的舞蹈链的题。所以想不到。 那就是预处理出来所有正方形,用一个long long来表示一个正方形,这个正方形有没有包含id这条边就用 (1<<id)&num判断。那怎么预处理所有正方形呢 ...
分类:
其他好文 时间:
2018-09-28 11:08:47
阅读次数:
172
小程序无限层级路由方案 <! 标题:小程序无限层级路由方案 副标:超过10层打不开新页面?没有的事儿。 封面:images/小程序无限层级路由方案/cover wide.jpg(长图)、images/小程序无限层级路由方案/cover square.png(方图) 作者:吴鹏和 小程序原生页面存在层 ...
分类:
微信 时间:
2018-09-26 12:18:07
阅读次数:
247