PYthon求助

B2046 骑车与走路

wisjsks @ 2023-06-13 21:43:38

这是代码:

a=int(input())

if (a/3.0)+23+27<1.2/a:

print('Bike')

elif (a/3.0)+23+27>1.2/a:

print('Walk')

elif (a/3.0)+23+27==1.2/a:

print('All')     

by lzg_070506 @ 2023-06-13 21:51:01

1.2/a?


by Red0rangE @ 2023-06-13 22:00:37

似乎除数和被除数反了,还有你最好把不等式化简一下


by yinzifan @ 2023-06-13 22:25:54

是a/1.2


by snugletPY @ 2023-11-08 00:05:10

你用python运行成功了吗,我只有20分


by snugletPY @ 2023-11-08 00:06:27

@zhujianyu2014 教我一下怎么写


|