![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
知识工程
顺利毕业(研)
一个编程小白,期待您的指教
展开
-
python实现动物知识推理
基于python实现动物知识推理 dict1={'1':'有毛发','2':'产奶','3':'有羽毛','4':'会飞','5':'会下蛋','6':'吃肉','7':'有犬齿', '8':'有爪','9':'眼盯前方','10':'有蹄','11':'反刍','12':'黄褐色','13':'有斑点','14':'有黑色条纹', '15':'长脖','16':'长腿','17':'不会飞','18':'会游泳','19':'黑白二色','20':'善飞原创 2022-03-10 09:03:15 · 12 阅读 · 0 评论 -
基于python实现命题逻辑推理
基于python实现的关于命题的逻辑推理,主要是基于栈的操作和基于递归操作,来实现的。 turelist=[] variabledict={} def handleproblem(singlestr): if singlestr in ["~","∪","∩","(","→"]: turelist.append(singlestr) elif turelist!=[]: str1=turelist.pop() if str1=="→":原创 2022-03-07 08:52:14 · 100 阅读 · 0 评论