IllegalSecondError# exception astropy.coordinates.IllegalSecondError(second)[源代码]# 当第二个值(时间)不在范围内时引发 [0,60] . 参数: second : int , floatPYTHON:int,PYTHON:FLOAT 实例 if not 0 <= sec < 60: raise IllegalSecondError(second)