我似乎遇到了运行此代码的问题:
def acidhenderson(): ka =输入(“输入Ka值:”) pka = math.log(float(scientific_string(ka)),10)* -1 base = float(…
最好的一击,你正在使用:
的 Python 2.x 强> :
choice = raw_input("What would you like to do?: ") # to have the input in str if choice == "1": basehenderson() if choice == "2": acidhenderson() if choice == "3": acid_base_ratio() if choice == "4": icesolver() if choice == "exit" or "quit": return