Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 XLRD 读取包含名字、姓氏和电子邮件地址的 excel 文件。
问题:使用 XLRD 后我会得到什么类型的对象,我如何使用这些信息向所有电子邮件地址发送电子邮件?
我试过这些:
……
import xlrd wb = xlrd.open_workbook('emails.xlsx') sh = wb.sheet_by_index(0) email_column = sh.col_values(1) #for e in email_column: send_file_zipped('result.zip',email_column )
但结果不好,因为它抄送所有电子邮件地址....我想将电子邮件一一发送....