From 3a19f44b42e6216126dc1b59ffcbe16a20a2e62b Mon Sep 17 00:00:00 2001 From: march3 Date: Sun, 23 Mar 2025 20:24:43 +0800 Subject: [PATCH] =?UTF-8?q?Python=E8=B6=85=E4=BA=BA-=E5=AE=87=E5=AE=99?= =?UTF-8?q?=E6=A8=A1=E6=8B=9F=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- simulators/mpl/mpl_2d_simulator_arrow.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/simulators/mpl/mpl_2d_simulator_arrow.py b/simulators/mpl/mpl_2d_simulator_arrow.py index 1fdde82..6bd6dd5 100644 --- a/simulators/mpl/mpl_2d_simulator_arrow.py +++ b/simulators/mpl/mpl_2d_simulator_arrow.py @@ -93,9 +93,9 @@ def 场景1(): 时间步长 = 0.01 # 创建星球列表 星球列表 = [ - 星球(质量=3e12, 位置=[0, 0], 速度=[0, 1], 颜色='red', 名称偏移=[1, 0]), - 星球(质量=5e10, 位置=[20, 0], 速度=[0, 2], 颜色='blue'), - 星球(质量=5e10, 位置=[-20, 0], 速度=[0, -2], 颜色='green') + 星球(质量=2e12, 位置=[0, 0], 速度=[0, 0.1], 颜色='red', 名称偏移=[1, 0]), + 星球(质量=5e10, 位置=[20, 0], 速度=[0, 1], 颜色='blue'), + 星球(质量=5e10, 位置=[-20, 0], 速度=[0, -1], 颜色='green') ] 坐标轴.set_xlim(-50, 50) 坐标轴.set_ylim(-20, 80) -- GitLab