- 博客(2)
- 资源 (1)
- 收藏
- 关注
原创 python中yagmail发送邮件模块
import yagmailusername = '[email protected]'password = 'xxxxx'smtp = 'smtp.exmail.qq.com'mail = yagmail.SMTP(user=username,password=password,host=smtp)to = ['[email protected]']cc = ['69xxxxxxx...
2019-07-23 17:09:24 11302
原创 os模块常用方法
os模块提供了一些方便使用操作系统相关功能的函数。 今天我们简单说几个常用的函数。1,os.listdir() #列出某个目录下的所有文件夹和文件,返回一个列表>>> os.listdir(r'D:\test')['第一课', '第二课.txt']2,os.path.isfile() #判断路径内容是否是文件类型,返回True或False>>...
2019-07-23 15:52:12 175
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人