摘要: #有一堆100块的石头,2个人轮流随机从中取1-5块,谁取最后一块就谁win,编程实现 import random stones = 100 count = 0 while stones > 0: c = random.randint(1,5) if c > stones: c = stones if count % 2 == 0: pri... 阅读全文
posted @ 2019-08-01 10:45 风声~~ 阅读(199) 评论(0) 推荐(0)