# -*- coding:utf-8 -*- # title : # description : # author :Python超人 # date :2023-01-22 # notes : # python_version :3.8 # ============================================================================== from bodies.body import Body class Sun(Body): def __init__(self, name="Sun", mass=1.9891e30, init_position=[0, 0, 0], init_velocity=[0, 0, 0], texture="", size_scale=1.0, distance_scale=1.0): params = { "name": name, "mass": mass, "init_position": init_position, "init_velocity": init_velocity, "density": 1.408e3, "color": [ 125, 125, 125 ], "texture": texture, "size_scale": size_scale, "distance_scale": distance_scale } super().__init__(**params) if __name__ == '__main__': print(Sun())