# a说我不是小偷;b说c是小偷;c说小偷肯定是d;d说c胡说!

def find_thief():
    human = ['a', 'b', 'c', 'd']
    for thief in human:
        truth = (thief != 'a') + (thief == 'c') + (thief == 'd') + (thief != 'd')
        if truth == 3:
            return thief

 

posted on 2020-08-27 17:41  焚音留香  阅读(93)  评论(0编辑  收藏  举报