0
点赞
收藏
分享

微信扫一扫

[LeetCode]TypeError: xxx takes 2 positional arguments but 4 were

知年_7740 2022-08-04 阅读 71


参考:https://stackoverflow.com/questions/57258281/typeerror-init-takes-2-positional-arguments-but-4-were-given

 

​MyBook(title,author,price)​​​ will pass four arguments: ​​(self, title, author, price)​

会多了一个self的参数

举报

相关推荐

0 条评论