weight = int(input("Weight : "))
unit = input("(L)bs or (K)g :")
if unit == 'L' or 'l' :
converted = weight *0.45
print(f"You're {converted} kilos")
if unit.upper() == 'K' :
converted = weight /0.45
print(f"You're {converted} pounds")
kg 与 pounds的换算 (python)
于 2023-07-30 09:08:22 首次发布