我這個黑金版Edge,你們每個人都可以用
2023-02-27 22:45 作者:bili_60712174941 | 我要投稿

import dmath.logic as dml
s='((not p)|(not Q|R))'
dml.truthtable3(s)?????
def truthtable3(s):?
??w='P O R'+s?
??print("%r"%w)?
truth={True,False}?
for P in truth:?
??for Q in truth:?
????for R in truth:?
??????f=eval(s)?
??????t=[P,O,R]+[f]?
??????print01(t)?
?????
標(biāo)簽: