num = 0
with open('dalian_all.csv', 'rt', encoding='gbk') as csvfile:
reader = csv.DictReader(csvfile)for line in reader:#逐行读取csv文件
num += 1 #每读一行,num+1#从第45行开始读取数据urlif num > 44:
urls =[row['url']for row in reader]for url in urls:
print(url)
原文地址:http://www.open-open.com/lib/view/open1346857871615.html
使用Java Mail API来发送邮件也很容易实现,但是最近公司一个同事封装的邮件API实在让我无法接受,于是便打算改用Spring Mail API来发送邮件,顺便记录下这篇文章。 【Spring Mail API】
Spring Mail API都在org.spri