Python 用户登录验证的小例子
复制代码 代码如下:#!/usr/bin/python#coding=gbk class User: def __init__(self,username,password,age,sex): self.username=username self.password=password self.age=age self.sex=sex def tell(self): print ‘UserContext:Name:%s,Pass:%s,Age:%s,Sex:%s’ % (self.username,self.p
用户评论