From 7acfbf7a17b295bf2a3878c724f838545634569d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E7=91=97=E6=9D=B0?= <3695888@qq.com> Date: Mon, 21 Dec 2020 22:53:34 +0800 Subject: [PATCH] =?UTF-8?q?DEBUG=20FINISH=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/P_C.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/libs/P_C.py b/libs/P_C.py index c3da539..bccc90e 100644 --- a/libs/P_C.py +++ b/libs/P_C.py @@ -13,8 +13,8 @@ def P_C_M(A, B): # stand for Physics Calculation multiple A & B list format:docs.basic_config.json:basic_number """ C = [0.0, 1, [], []] - Float = A[0] * B[0] - Int = A[1] + B[1] + Float = float(A[0] * B[0]) + Int = int(A[1] + B[1]) if Float >= 10: Float /= 10 Int += 1 @@ -22,8 +22,7 @@ def P_C_M(A, B): # stand for Physics Calculation multiple Float *= 10 Int -= 1 else: - Float = float(Float) - Int = int(Int) + pass Unit1 = [].append(A[2].extend(B[2])) Unit2 = [] for unit in B[3]: @@ -44,8 +43,8 @@ def P_C_D(A, B): # stand for Physics Calculation divide A & B list format:docs.basic_config.json:basic_number """ C = [0.0, 1, [], []] - Float = A[0] / B[0] - Int = A[1] - B[1] + Float = float(A[0] / B[0]) + Int = int(A[1] - B[1]) if Float >= 10: Float /= 10 Int += 1 @@ -53,8 +52,7 @@ def P_C_D(A, B): # stand for Physics Calculation divide Float *= 10 Int -= 1 else: - Float = float(Float) - Int = int(Int) + pass Unit1 = A[2].extend(B[3]) Unit2 = [] for unit in B[2]: