python 支持中文

# coding=utf-8  // 支持中文
voted = {}


def check_voter(name):
    if voted.get(name):
        print "剔除"
    else:
        voted[name] = True
        print "可以投票"


check_voter("tom")
check_voter("jack")
check_voter("tom")

posted @ 2021-12-10 14:58  TBHacker  阅读(169)  评论(0编辑  收藏  举报