1.类名.__mro__ 可打印参看函数的所有父类 2.super()方法 class Master(object): def __init__(self): self.kongfu = '[古法煎饼果子配方]' def make_cake(self): print(f'运用{self.kongfu ...
分类:
其他好文 时间:
2020-07-02 13:22:12
阅读次数:
52
转自https://www.cnblogs.com/jermmyhsu/p/8195727.html 有待学习 Bag of Feature 是一种图像特征提取方法,它借鉴了文本分类的思路(Bag of Words),从图像抽象出很多具有代表性的「关键词」,形成一个字典,再统计每张图片中出现的「关键 ...
分类:
其他好文 时间:
2020-07-01 23:39:29
阅读次数:
66
JVM class文件格式 魔法数 CAFE BABE 编译器版本号 Constant count Constant pool access flag this class super class interface count interfaces field count fields metho ...
分类:
其他好文 时间:
2020-07-01 20:22:12
阅读次数:
65
参考:https://blog.csdn.net/hellobenji/article/details/79978701 https://www.jianshu.com/p/5f3953bc012e 在开发项目过程中,startActivityForResult是最常见的,它的使用场景就是:比如从A ...
分类:
其他好文 时间:
2020-07-01 14:14:30
阅读次数:
66
A Ministry for Defense sent a general to inspect the Super Secret Military Squad under the command of the Colonel SuperDuper. Having learned the news, ...
分类:
其他好文 时间:
2020-06-30 22:37:23
阅读次数:
61
解除正在死锁的状态有两种方法: 查询是否锁表 show OPEN TABLES where In_use > 0; 查询进程(如果您有SUPER权限,您可以看到所有线程。否则,您只能看到您自己的线程) show processlist 杀死进程id(就是上面命令的id列) kill id 第二种: ...
分类:
其他好文 时间:
2020-06-30 17:18:48
阅读次数:
116
异常: org.springframework.orm.hibernate3.HibernateSystemException: No default constructor for entity Caused by: org.hibernate.InstantiationException: No ...
分类:
其他好文 时间:
2020-06-30 12:50:04
阅读次数:
55
https://www.cnblogs.com/grandyang/p/5144918.html 1. class Solution { public: int nthSuperUglyNumber(int n, vector<int>& primes) { vector<int> res(1,1) ...
分类:
其他好文 时间:
2020-06-30 10:56:23
阅读次数:
38
createGeojson:function(arr) { let geoArr=[]; for(let i=0;i<arr.length;i++) { let obj={ "type": "Feature", "properties": {"value": -999}, "geometry": { ...
分类:
Web程序 时间:
2020-06-29 18:52:21
阅读次数:
141
Context Managers 是我最喜欢的 python feature 之一,在恰当的时机使用 context manager 使代码更加简洁、清晰,更加安全,复用性更好,更加 pythonic。本文简单介绍一下其使用方法以及常见使用场景。 本文地址:https://www.cnblogs.c ...
分类:
编程语言 时间:
2020-06-29 10:01:56
阅读次数:
75