文章分类 -  Python

摘要:Micro Average vs Macro average Precision and recall are then defined as: Recall in this context is also referred to as the true positive rate or sensi 阅读全文
posted @ 2018-05-07 14:06 寒杰士 阅读(1361) 评论(0) 推荐(0)
摘要:Private, protected and public in Python In C++ and Java, things are pretty straight-forward. There are 3 magical and easy to remember access modifiers 阅读全文
posted @ 2018-04-29 23:13 寒杰士 阅读(1167) 评论(1) 推荐(1)
摘要:特性property 1:什么是特性property property是一种特殊的属性,访问它时会执行一段功能(函数)然后返回值。 注意:此时的特性arear和perimeter不能被赋值 2: 为什么要用property 将一个类的函数定义成特性以后,对象再去使用的时候obj.name,根本无法察 阅读全文
posted @ 2018-04-24 14:06 寒杰士 阅读(433) 评论(0) 推荐(0)
摘要:文件名全小写,可使用下划线 包应该是简短的、小写的名字。如果下划线可以改善可读性可以加入。如mypackage。 模块与包的规范同。如mymodule。 类总是使用首字母大写单词串。如MyClass。内部类可以使用额外的前导下划线。 函数&方法函数名应该为小写,可以用下划线风格单词以增加可读性。如: 阅读全文
posted @ 2018-04-24 13:32 寒杰士 阅读(866) 评论(0) 推荐(0)