
它显示只有百分之五十对,报错信息显示SyntaxError: multiple statements found while compiling a single statement

它显示只有百分之五十对,报错信息显示SyntaxError: multiple statements found while compiling a single statement
result = float(eval(money[:-1])*rate)
两个result都要改。
你这个money是字符串,不改变数据类型就做乘法的话会出问题。