📜  如何根据 y sympy 编写 x - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:19.137000             🧑  作者: Mango

代码示例1
def express(a, b, name):
    sym = symbols(name)
    sol = solve(a-sym, b)
    assert len(sol) == 1
    return (sym, sol[0])