摘要: 最终计算器需求: a+b a-b a+b 或 a-b 多位数加减(可带空格和 - 符号)比如 - 3 + 4 - 2 1 def symbol_result(string): 2 string = string.replace("++","+") 3 string = string.replace( 阅读全文
posted @ 2018-05-07 14:29 dongye95 阅读(255) 评论(0) 推荐(0) 编辑