From 5944459decfb041cc599f1814c1fbf9f23e090dd Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期四, 25 四月 2024 16:23:29 +0800 Subject: [PATCH] F撤阈值重新定义/新G撤实现 --- test/test.py | 18 +++++++----------- 1 files changed, 7 insertions(+), 11 deletions(-) diff --git a/test/test.py b/test/test.py index 8a5924f..9c093b9 100644 --- a/test/test.py +++ b/test/test.py @@ -1,12 +1,8 @@ if __name__ == "__main__": - left_money_w = -3900 - for w in [-3900, -3600, -3300,-3000, -2700, -2400,-2100,-900,3900,3900,4200,4500]: - if w > 0: - rate = ((w + 300) // 900) * 2 - else: - rate = ((w + 599) // 900) * 2 - if rate < -10: - rate = -10 - if rate > 10: - rate = 10 - print(w, rate) + num = 25070171 + limit_up_price = 5.1 + if limit_up_price: + money_y = round((num * float(limit_up_price)) / 1e8, 1) + money = int(200 * money_y + 280) + count = int(money_y * 10) // 10 + 3 + print( money, count) -- Gitblit v1.8.0