摘要: import re def cal_mini_exp(mini): # '40/5' '2*5' if '*' in mini: num1,num2 = mini.split('*') return str(float(num1)*float(num2)) elif '/' in mini: num1, num2 ... 阅读全文
posted @ 2018-03-08 20:48 wzqwer 阅读(201) 评论(0) 推荐(0) 编辑