Python 题解
2024-10-12 08:07:25
发布于:浙江
12阅读
0回复
0点赞
写题时一定要看题啊,我就是忘了搞error错了7次,看了题才知道
a,b=input().split()
sz,dw=float(a),b
if dw=='in':
print(round(sz*2.54,2),'cm')
elif dw=='cm':
final=round(sz/2.54,2)
print(round(sz/2.54,2),"in")
else:
print('error')
这里空空如也
有帮助,赞一个