import math def degree_to_dms(deg):"""将度数转换为度分秒格式的字符串 参数:deg: float - 度数值 返回值:str - 度分秒格式的字符串"""d = int(deg)m = int((deg - d) * 60)s = round(((deg - d) * 60 - m) * 60, 2)return f"{d}°{m}'{s}''"这个函数与上述代...