- 博客(6)
- 收藏
- 关注
原创 学习Spring时遇到问题Cannot locate BeanDefinitionDecorator for element[property-placeholder]
如上图所示,那里一直出错,我找了好久。原来是自己犯了低级错误。我把 <context:property-placeholder location="classpath:jdbc.properties"/> 写到了配置连接池的<bean></bean>中 这样就好了! 纪念自己的失误,希望可以帮助宁 ...
2019-04-11 12:28:12
1338
3
原创 重写和重载
package test; public class Overloading { public int test(){ System.out.println("test1"); return 1; } public void test(int a){ System...
2019-03-14 22:00:34
132
原创 python中的切片操作
import numpy as np d = np.arange(0,9) print(d[0:])#从第0个开始 e = d[::-1] #对所有数,每一个取一个,只不过是反向取一个 e = d[::1] #对所有数,每一个取一个 e = d[:2:1] #前两个数,每一个取一个 e = d[-5:] #从倒数第五个数开始,列出后面的 e = d[:-5] # 取到倒...
2019-01-03 15:28:32
351
原创 WTF python 中的执行时机差异
array = [1, 8, 15] g = (x for x in array if array.count(x) > 0) array = [2, 8, 22] 以上代码输出[8] 首先明确 .count()表示的是子串在字符串中出现的次数 其次要知道,在生成器表达式中, in 子句在声明时执行, 而条件子句则是在运行时执行. 所以,只有当x = 8时, 才在[2,8,22]中...
2019-01-02 22:57:09
210
转载 七月GAN第一集
今天我们来讲一下使用Keras实现GAN的具体过程。 我们用MINST数据集来做这个测试。 首先我们导入需要的所有库 %matplotlib inline import os,random os.environ["KERAS_BACKEND"] = "tensorflow" import numpy as np import theano as th import theano.tenso...
2018-12-25 21:02:52
322
1
原创 观看莫烦老师《迁移学习》,利用VGG实现一个判断老虎和猫的尺寸
""" This is a simple example of transfer learning using VGG. Fine tune a CNN from a classifier to regressor. Generate some fake data for describing cat and tiger length. Fake length setting: Cat - N...
2018-12-18 19:42:30
1405
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅