码迷,mamicode.com
首页 >  
搜索关键字:val    ( 23217个结果
AC自动机算法学习
KMP+TRIE C++ int val[1000100][31],tot; int tr[1000100]; int fail[1000100]; struct AC_Trie{ void clean(){ tot=0; memset(val,0,sizeof(val)); memset(tr,0 ...
分类:编程语言   时间:2018-12-19 19:39:03    阅读次数:156
(原创)lua日期、时间、时间戳的计算和转换
----------------------------------------------日期与时间 print("当前时间戳:") local nowTime = os.time() print(nowTime) print("") print("转换成日期:") --时间戳 转 日期 loca... ...
分类:其他好文   时间:2018-12-19 18:39:28    阅读次数:826
截取前三后三,中间五位*****号代替
var len= value.length; var xx= value.substring(3,len-4); var values = value.replace(xx,"*****"); ...
分类:其他好文   时间:2018-12-19 17:57:38    阅读次数:94
Python3 从零单排20_方法(绑定&内置)&反射
非绑定方法 没有自动传值的功能 @staticmethod 绑定方法 绑定给谁就给谁调用,调用时会自动将调用者作为第一个参数传递给函数 1.绑定到对象的方法(不被任何装饰器装饰的函数) 2.绑定到类的方法 @classmethod 装饰的函数 class A: def __init__(self, ... ...
分类:编程语言   时间:2018-12-19 17:54:35    阅读次数:234
np newaxis 为 numpy ndarray(多维数组)增加一个轴
1 2 3 4 np.newaxis 在使用和功能上等价于 None,查看源码发现:newaxis = None,其实就是 None 的一个别名。 1. np.newaxis 的实用 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2. 索引多维数组的 ...
分类:编程语言   时间:2018-12-19 17:51:13    阅读次数:190
script 修改 plist遇到的问题
一个sh脚本每次build的时候动态修改info.plist文件 达到动态更改版本号的目的 但是估计是因为缓存的缘故 每次只有clean之后再运行才会修改成功 看script执行的log 好像是先修改之后然后xcode去copy了一份旧的plist给覆盖了。。。 但是clean之后却没有这个copy ...
分类:其他好文   时间:2018-12-19 16:59:16    阅读次数:193
Spring Security(三十):9.5 Access-Control (Authorization) in Spring Security
The main interface responsible for making access-control decisions in Spring Security is the AccessDecisionManager. It has a decide method which takes ...
分类:数据库   时间:2018-12-19 14:16:32    阅读次数:180
Spring源码窥探之:声明式事务
1. 导入驱动,连接池,jdbc和AOP的依赖 2. 编写配置类,@EnableTransactionManagement这个注解一定要开启 3. Service类和Dao类 4. 测试类 5 结果 出异常就回滚,否则插入成功 ...
分类:编程语言   时间:2018-12-19 12:54:10    阅读次数:228
决策树遇到sklearn.exceptions.NotFittedError: XXX instance is not fitted yet. Call 'fit' with appropriate arguments before using this method.的解决方案
1.异常信息: 2.错误成因: 2.1 表象原因 Exception class to raise if estimator is used before fitting. This class inherits from both ValueError and AttributeError to ...
分类:移动开发   时间:2018-12-19 11:08:28    阅读次数:1300
restful风格url Get请求查询所有和根据id查询的合并成一个controller
restful风格url Get请求查询所有和根据id查询的合并成一个controller的方法 原代码 该种写法不够完美,写多个方法并且匹配的不是相同的url.强迫症表示不能接受 改写 也可以直接映射两个不同方法,这里是不同的url映射同一个方法 必须匹配多个url时requird = false ...
分类:Web程序   时间:2018-12-19 11:06:51    阅读次数:347
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!