Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
考虑以下 PyEDA:
a, b, c = map(exprvar, 'abc') f1 = And(a,Or(~a,b)) print(f1)
输出:
And(a, Or(~a, b))
a我怎样才能用替换第一个c?compose替换所有实例a:
a
c
compose
f1.compose({a: c})
And(c, Or(~c, b))