該樓層疑似違規已被系統折疊?隱藏此樓查看此樓
#自定義結構的傳遞的確比較麻煩,如果找到更好的方法,請務必告訴我
python編寫一個簡單的程序、class ReadMail:
_public_methods_=['Read_mail','GetAddr','GetSub', 'GetText', 'GetAtta', 'GetTime','WriteFile']
_reg_progid_='Python.ReadMail'
vb與python的難度差距、_reg_clsid_= pythoncom.CreateGuid()
def Read_mail(self,savepath):
emailhost='pop.qq.com'
vb.net python哪個好。emailuser=addr
emailpass=password
GetmailAttachment(emailhost,emailuser,emailpass,str(savepath))
vb編程語言、return None
def WriteFile(self,savepath):
with open(savename,'wb') as fe:
fe.write(FileData)
z=zipfile.ZipFile(savename)
z.extractall(path=savepath)
z.close()
def GetAddr(self):
return Mail['Address']
def GetSub(self):
return Mail['Subject']
def GetText(self):
return Mail['Text']
def GetAtta(self):
return Mail['Attachment']
def GetTime(self):
return UpdateTime
版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。
工作时间:8:00-18:00
客服电话
电子邮件
admin@qq.com
扫码二维码
获取最新动态