n = int(input('公里数:')) s = round(n / 1.852, 2) print('海里数:', s)
如果对你有帮助,可以点击我这个回答右上方的【采纳】按钮,给我个采纳吗,谢谢
直接用input接受数值。