#-*- coding:utf-8 -*- import socketserver from module import * class server: def __init__(self,request): self.conn=request self.conn.sendall(by('欢迎光临大龙FTP!')) def login(self): self.user=st(self.conn.recv(1024)) self.conn.sendall(by('1')) self.password=st(self.conn.recv(1024)) if self.user in userdict.keys() and self.password==userdict[self.user]: self.result='Success' self.conn.sendall(by('