来自 stackoverflow find_program(CCACHE_PROGRAM ccache) if (CCACHE_PROGRAM) set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}") endif ( ...
分类:
系统相关 时间:
2020-03-06 14:56:30
阅读次数:
207
1.介绍 将类方法转换为类属性,可以用.直接获取属性值或者对属性进行赋值 Python内置的@property装饰器就是负责把一个方法变成属性调用的 2. 实现 3. 总结 score()方法上增加@property装饰器,等同于score= property(fget=score),将score赋 ...
分类:
其他好文 时间:
2020-03-06 13:40:52
阅读次数:
62
pom.xml <packaging>jar</packaging><dependencies> <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifactId> <version>3.4.5</version> ...
分类:
其他好文 时间:
2020-03-06 11:08:59
阅读次数:
56
其实装饰器它就是一个闭包。装饰器实现的是,返回一个内嵌的函数以及函数所需要的外部变量, 什么是闭包?(https://www.bilibili.com/video/av49346682) 如果一个函数定义在另一个函数的作用域内,并且引用了外层函数的变量,则该函数称为闭包。 闭包例子: def out ...
分类:
其他好文 时间:
2020-03-06 01:06:17
阅读次数:
48
1.transition-property设置过度的属性,比如:width height background-color 2.transition-duration 设置 过度的时间 比如1S500MS 3.transition-timing-function设置 过度运动的方式,常用的有:lin ...
分类:
其他好文 时间:
2020-03-05 16:39:01
阅读次数:
75
在 apache 官方提供的 log4j 文档中,指明了配置文件的加载顺序Log4j will inspect the "log4j.configurationFile" system property and, if set, will attempt to load the configurat... ...
分类:
其他好文 时间:
2020-03-04 23:30:16
阅读次数:
71
mycat 学习总结 mycat原理: 对sql进行“拦截” server.xml 定义一些mycat连接信息 [同mysql] <user name="mycat"> <property name="password">123456</property> <property name="schem ...
分类:
其他好文 时间:
2020-03-04 16:19:59
阅读次数:
58
配置core-site.xml <configuration> <!-- 把两个NameNode)的地址组装成一个集群mycluster --> <property> <name>fs.defaultFS</name> <value>hdfs://mycluster</value> </proper ...
分类:
其他好文 时间:
2020-03-04 00:07:55
阅读次数:
86
今天遇到一个我自己很少遇见的问题,我是用mybatis自动生成的entity,和dao以及mapper 。在我对数据库进行添加数据时发现mybatis报错了。Could not set property ‘id’ of ‘com.*.sys.entity’ with value ‘********’ ...
分类:
其他好文 时间:
2020-03-03 13:05:59
阅读次数:
265
css3的动画属性 通过 CSS3,我们能够创建动画,这可以在许多网页中取代动画图片、Flash 动画以及 JavaScript。 transition: 过渡: 特点:需要事件进行触发。 animation 动画: 特点:不需要事件进行触发,调用关键帧即可。 不同于过渡动画只能定义首尾两个状态,关 ...
分类:
Web程序 时间:
2020-03-03 11:05:32
阅读次数:
337