摘要: 实现能计算类似 1 - 2 * ( (60-30 +(-40/5) * (9-2*5/3 + 7 /3*99/4*2998 +10 * 568/14 )) - (-4*3)/ (16-3*2) )等类似公式的计算器程序 # -*- encoding:utf-8 -*- import re def dealwith(exp): exp = exp.replace("+-", '-')... 阅读全文
posted @ 2018-10-24 16:11 蕾拉 阅读(127) 评论(0) 推荐(0) 编辑