提交 593d631d 编写于 作者: 三月三net's avatar 三月三net

太阳系三体模拟器

上级 2df2e6cb
......@@ -302,7 +302,7 @@ class Body(metaclass=ABCMeta):
return self.raduis * 2
def __repr__(self):
return '<%s> m=%.3e(kg), r/d=%.3e/%.3e(km), v=%.3e(km³), d=%.3e(kg/m³), p=[%.3e,%.3e,%.3e](km), v=%s(km/s)' % \
return '<%s> m=%.3e(kg), r|d=%.3e|%.3e(km), v=%.3e(km³), d=%.3e(kg/m³), p=[%.3e,%.3e,%.3e](km), v=%s(km/s)' % \
(self.name, self.mass, self.raduis, self.diameter, self.volume, self.density,
self.position[0], self.position[1], self.position[2], self.velocity)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册