上一页 1 ··· 117 118 119 120 121 122 123 124 125 ··· 274 下一页
摘要: 圈复杂度主要与分支语句(if、else、,switch 等)的个数成正相关。如下代码: public String case2(int index, String string) { String returnString = null; if (index < 0) { throw new Ind 阅读全文
posted @ 2019-07-22 16:44 bonelee 阅读(1461) 评论(0) 推荐(0)
摘要: 安全老司机 | Struts2漏洞爆发后,与黑客的一次正面交锋 from:https://zhuanlan.zhihu.com/p/66122521 from:https://zhuanlan.zhihu.com/p/66122521 from:https://zhuanlan.zhihu.com/ 阅读全文
posted @ 2019-07-22 14:18 bonelee 阅读(2319) 评论(2) 推荐(0)
摘要: Deeplearning Algorithms tutorial 谷歌的人工智能位于全球前列,在图像识别、语音识别、无人驾驶等技术上都已经落地。而百度实质意义上扛起了国内的人工智能的大旗,覆盖无人驾驶、智能助手、图像识别等许多层面。苹果业已开始全面拥抱机器学习,新产品进军家庭智能音箱并打造工作站级别 阅读全文
posted @ 2019-07-17 17:56 bonelee 阅读(1871) 评论(0) 推荐(0)
摘要: https://www.researchgate.net/post/How_to_determine_unknown_class_using_neural_network 里面有讨论,说是用rbf神经网络,O-SVM可以搞定 https://www.reddit.com/r/MachineLearn 阅读全文
posted @ 2019-07-17 14:49 bonelee 阅读(4166) 评论(2) 推荐(0)
摘要: __main__ and scoping in python from:https://stackoverflow.com/questions/4775579/main-and-scoping-in-python Ask Question __main__ and scoping in python 阅读全文
posted @ 2019-07-16 17:15 bonelee 阅读(5839) 评论(0) 推荐(0)
摘要: from:https://python3-cookbook.readthedocs.io/zh_CN/latest/c08/p07_calling_method_on_parent_class.html 8.7 调用父类方法 问题 你想在子类中调用父类的某个已经被覆盖的方法。 问题 你想在子类中调用 阅读全文
posted @ 2019-07-12 14:41 bonelee 阅读(1134) 评论(0) 推荐(0)
摘要: 默认情况下,Python中的成员函数和成员变量都是公开的(public),在python中没有类似public,private等关键词来修饰成员函数和成员变量。在python中定义私有变量只需要在变量名或函数名前加上 ”__“两个下划线,那么这个函数或变量就是私有的了。在内部,python使用一种 阅读全文
posted @ 2019-07-12 14:36 bonelee 阅读(1305) 评论(0) 推荐(0)
摘要: from:https://zhuanlan.zhihu.com/p/30553607 小编在最初使用上Python之后,就一发不可收拾,人生苦短、我用Python,不光是因为其优雅简洁,更是因为它强大的扩展性,特别是一些Python内置的私有属性,熟练地掌握之后使得在开发过程中更灵活、更高效,今天小 阅读全文
posted @ 2019-07-12 14:35 bonelee 阅读(762) 评论(0) 推荐(0)
摘要: 调用方法: 实现方法: 补充: 前言 with 语句适用于对资源进行访问的场合,确保不管使用过程中是否发生异常都会执行必要的“清理”操作,释放资源,比如文件使用后自动关闭/线程中锁的自动获取和释放等。 问题引出 如下代码: 上面代码存在2个问题: (1)文件读取发生异常,但没有进行任何处理; (2) 阅读全文
posted @ 2019-07-12 14:27 bonelee 阅读(742) 评论(1) 推荐(0)
摘要: 程序如下: 其中,test.pkl: a = {'xx': 999, 'hi': 1223} >>> f2=open("test.pkl", "wb")>>> pk.dump(a, f)>>> f.close()>>> f2=open("test.pkl", "rb")>>> pk.load(f2) 阅读全文
posted @ 2019-07-11 19:55 bonelee 阅读(2604) 评论(0) 推荐(0)
上一页 1 ··· 117 118 119 120 121 122 123 124 125 ··· 274 下一页