s = input() if s.endswith('英寸'): print(f'{s} = {eval(s.strip("英寸"))*2.54:.3f}厘米') elif s.endswith('厘米'): print(f'{s} = {eval(s.strip("厘米"))*0.393701:.3f}英寸')
题目讲的很清楚了,标志。if tag == 'ln‘: 转换英寸else: 转换厘米