以弗所数据中的10f是什么意思?

2024-09-28 21:16:21 发布

您现在位置:Python中文网/ 问答频道 /正文

10f在>>> print('%.10f' % yh.earth_distance)行中是什么意思

下面是一个使用它的示例:

>>> line = "C/2002 Y1 (Juels-Holvorcem),e,103.7816,166.2194,128.8232,242.5695,0.0002609,0.99705756,0.0000,04/13.2508/2003,2000,g  6.5,4.0"
>>> yh = ephem.readdb(line)
>>> yh.compute('2007/10/1')
>>> print('%.10f' % yh.earth_distance)
14.8046731949
>>> print(yh.mag)
23.96

Tags: 示例linedistanceprintyhcomputeearthy1