DEBUG!
This commit is contained in:
parent
3dc34abd8c
commit
d573f98ddd
13
libs/P_C.py
13
libs/P_C.py
@ -23,10 +23,9 @@ def P_C_M(A, B): # stand for Physics Calculation multiple
|
||||
Int -= 1
|
||||
else:
|
||||
pass
|
||||
Unit1 = [].append(A[2].extend(B[2]))
|
||||
Unit2 = []
|
||||
Unit1, Unit2 = A[2] + B[2], []
|
||||
for unit in B[3]:
|
||||
if unit in [Unit1]:
|
||||
if unit in Unit1:
|
||||
Unit1.remove(unit)
|
||||
else:
|
||||
Unit2.append(unit)
|
||||
@ -47,6 +46,7 @@ def P_C_D(A, B): # stand for Physics Calculation divide
|
||||
formats:
|
||||
A & B list format:docs.basic_config.json:basic_number
|
||||
"""
|
||||
B[2], B[3] = B[3], B[2]
|
||||
C = [0.0, 1, [], []]
|
||||
Float = float(A[0] / B[0])
|
||||
Int = int(A[1] - B[1])
|
||||
@ -58,10 +58,9 @@ def P_C_D(A, B): # stand for Physics Calculation divide
|
||||
Int -= 1
|
||||
else:
|
||||
pass
|
||||
Unit1 = A[2].extend(B[3])
|
||||
Unit2 = []
|
||||
for unit in B[2]:
|
||||
if unit in [Unit1]:
|
||||
Unit1, Unit2 = A[2] + B[2], []
|
||||
for unit in B[3]:
|
||||
if unit in Unit1:
|
||||
Unit1.remove(unit)
|
||||
else:
|
||||
Unit2.append(unit)
|
||||
|
Loading…
Reference in New Issue
Block a user