我有这段代码 -
def pop110(pop3,username,password):
try:
Mailbox = poplib.POP3(pop3, '110')
Mailbox.user(username)
Mailbox.pass_(password)
numMessages = len(Mailbox.list()[1])
return True
except:return
如果connexion返回时间,我想返回False
。怎么能超出错误超时?