私信  •  关注

Kundan Jha

Kundan Jha 最近创建的主题
Kundan Jha 最近回复了
6 年前
回复了 Kundan Jha 创建的主题 » python中的计数步骤[保持]

你的代码应该是

def steps_to_miles():
    steps = input();
    mile = steps / 2000
    return mile

print('%0.2f' %steps_to_miles())

这应该管用。