# 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")

相关文章:

  • 2022-03-07
  • 2022-02-13
  • 2021-11-25
  • 2021-12-01
  • 2021-06-26
  • 2021-06-01
  • 2021-11-27
  • 2021-06-29
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-20
  • 2022-12-23
  • 2022-01-07
  • 2021-10-31
  • 2021-10-16
相关资源
相似解决方案