摘要: eq = input() eq1 = eq.replace("=","-(") + ")" c = eval(eq1, {'X': 1j}) print(int(-c.real/c.imag)) 例如:solve("x - 2x + 5x - 46(235-24) = x + 2") 下面就来解读下 阅读全文
posted @ 2020-03-31 13:41 AlwaysBeta 阅读(1489) 评论(0) 推荐(0) 编辑