def car(wheels,bodies,figures): car_by_wheels=wheels//4 car_by_figures=figures/2 if figures//2 >= car_by_wheels and bodies >= car_by_wheels: print(car_by_wheels) elif car_by_wheels >= car_by_figures and bodies >= car_by_figures: print(car_by_figures) elif car_by_wheels >= bodies and car_by_figures >= bodies: print(bodies) else: print("0")print(car(3,29,54))我尝试了其他一些示例,代码工作正常,但我不断收到None. 为什么?
添加回答
举报
0/150
提交
取消