4
32
1209
金牌会员
class Car(): def__init__(self,color,people): self.color=color self.people=people self.position=[400,300] def forward(self) pass def backward(self) pass def turn_left(self) pass def turn_right(self) pass car_two=Car('blue',3) car_two.forward()
使用道具 举报
本版积分规则 发表回复 回帖后跳转到最后一页
小黑屋|东台市机器人学会 ( 苏ICP备2021035350号-1;苏ICP备2021035350号-2;苏ICP备2021035350号-3 )
GMT+8, 2024-11-22 01:40 , Processed in 0.040320 second(s), 28 queries .
Powered by Discuz! X3.4
Copyright © 2001-2020, Tencent Cloud.