From 4a0e6ea270808dd41269c5bfdf807848639ec7ac Mon Sep 17 00:00:00 2001 From: march3 Date: Sat, 29 Mar 2025 22:13:21 +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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/simulators/mpl/mpl_2d_simulator_arrow.py b/simulators/mpl/mpl_2d_simulator_arrow.py index 54c1ce1..8c04208 100644 --- a/simulators/mpl/mpl_2d_simulator_arrow.py +++ b/simulators/mpl/mpl_2d_simulator_arrow.py @@ -93,12 +93,12 @@ class 星球: def 场景1(): global 星球列表, 时间步长 - 时间步长 = 0.01 + 时间步长 = 0.03 # 创建星球列表 星球列表 = [ - 星球(质量=5e12, 位置=[0, 0], 速度=[0, 0.2], 颜色='red', 名称偏移=[1, 0]), - 星球(质量=5e11, 位置=[25, 0], 速度=[0, 2], 颜色='blue'), - 星球(质量=5e11, 位置=[-25, 0], 速度=[0, -2], 颜色='green') + 星球(质量=5e12, 位置=[0, 0], 速度=[0, 0.15], 颜色='red', 名称偏移=[1, 0]), + 星球(质量=2e11, 位置=[25, 0], 速度=[0, 2.1], 颜色='blue'), + 星球(质量=2e11, 位置=[-25, 0], 速度=[0, -1.8], 颜色='green') ] 坐标轴.set_xlim(-50, 50) 坐标轴.set_ylim(-20, 80) -- GitLab