This commit is contained in:
SiHuan 2020-03-02 20:18:54 +08:00
parent 7b20900655
commit e96d9929ac

View file

@ -22,7 +22,7 @@ def bc(formula):
def pure(formula): def pure(formula):
while(formula[0] == '(' or (formula[0] == '-' and formula[1] == '-')): while(formula[0] == '(' or (formula[0] == '-' and formula[1] == '-')):
if formula[0] == '(': if formula[0] == '(':
formula == formula[1:] formula = formula[1:]
else: else:
formula = formula[2:] formula = formula[2:]
while(formula[len(formula) - 1] == ')'): while(formula[len(formula) - 1] == ')'):