当前位置:网站首页>__ init__ () missing 2 required positive arguments
__ init__ () missing 2 required positive arguments
2022-07-04 21:15:00 【Fun of construction】
This kind of error is in addition to the insufficient parameters given in the regular call , And maybe with super The sentence is about .
Inherit python Be careful when you class ,super init The parameter needs to be the parent class init Pass in the required parameters :
super(xxx,self).__init__( You must remember to pass the reference here )
边栏推荐
- Huawei ENSP simulator configures ACL access control list
- LeetCode 7. Integer inversion
- 【微服务|SCG】Predicate的使用
- torch.tensor和torch.Tensor的区别
- Configuration of DNS server of Huawei ENSP simulator
- 华为ensp模拟器 实现多个路由器的设备可以相互访问
- Procurement in software development
- 【1200. 最小绝对差】
- LeetCode+ 81 - 85 单调栈专题
- Android原生数据库的基本使用和升级
猜你喜欢
随机推荐
Hwinfo hardware detection tool v7.26 green version
Idea plug-in
Idea restore default shortcut key
Roast B station charges, is it because it has no money?
PS竖排英文和数字文字怎么改变方向(变竖直显示)
【申博攻略】六.如何联系心仪的博导
hash 表的概念及应用
网络命名空间
render函数与虚拟dom
Leetcode+ 81 - 85 monotone stack topic
Golang中UTF编码和字符集
多模输入事件分发机制详解
Nmap scan
Advantages of RFID warehouse management system solution
Vue cleans up the keepalive cache scheme in a timely manner
Huawei ENSP simulator realizes communication security (switch)
Implementation of redis distributed lock
哈希表、哈希函数、布隆过滤器、一致性哈希
软件开发过中的采购
y56.第三章 Kubernetes从入门到精通 -- 业务镜像版本升级及回滚(二九)








