![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
Never_Dawn
github: https://github.com/NeverDawn
展开
-
python实现真值表
python实现真值表 import copy def boo(x,leng,listboo,array): #递归实现布尔真值全排列 if x==leng: for i in range (0,leng): array.append(listboo[i]) ...原创 2018-10-13 12:57:27 · 6604 阅读 · 0 评论 -
pyhon实现三羊问题
#pyhon实现三羊问题import randomx=0kindout=[]x=0for i in range(0,100000): kind=random.sample(['c','s','s'],3) kindout=[] choice=random.randint(0,2) for j in range(len(kind)): if ...原创 2018-11-06 19:44:02 · 336 阅读 · 0 评论