zl程序教程

您现在的位置是:首页 >  后端

当前栏目

python 支持中文

Python中文 支持
2023-09-27 14:24:28 时间
# 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")