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-23 16:04 , Processed in 0.037469 second(s), 29 queries .
Powered by Discuz! X3.4
Copyright © 2001-2020, Tencent Cloud.