wwyy4ever 发表于 2018-2-12 14:30
为什么不能是distance=0 def drive(self,speed) time=distance/self.distance print time
Selvaria 发表于 2017-11-9 17:19
class Car(object):
def __init__(self,speed,distance):
self.speed = speed
宫城良田的女友 发表于 2020-6-12 14:49
想请问crossin先生:
def drive (self , distance) 里,参数是 [self , distance]还是 [self] 和 [distanc ...
欢迎光临 Crossin的编程教室 (https://bbs.crossincode.com/) | Powered by Discuz! X2.5 |