Python基礎-TypeError:takes 2 positional arguments but 3 were given

Error:python   今天寫一段簡單類定義python代碼所遇到報錯問題:TypeError: drive() takes 2 positional arguments but 3 were givenpost 代碼以下spa    class Car: speed = 0 def drive(self,distance): time = distance
相關文章
相關標籤/搜索