摘要: import re bracket = re.compile(r'\([^()]+\)') # 寻找最内层括号规则 mul = re.compile(r'(\d+\.?\d*\*-\d+\.?\d*)|(\d+\.?\d*\*\d+\.?\d*)') # 寻找乘法运算规则 div = re.compile(r'(\d+\.?\d*/-\d+\.?\d*)|(\d+\.?\d*/\d+\.?... 阅读全文
posted @ 2018-08-11 19:00 Niuli'blog 阅读(672) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-08-11 17:55 Niuli'blog 阅读(160) 评论(0) 推荐(0) 编辑