摘要: # coding = utf -8import smtplibfrom email.mime.text import MIMETextemail_host = "smtp.qq.com" #指定使用qq邮箱email_user = "81972730@qq.com" #发件人邮箱用户名email_p 阅读全文
posted @ 2019-10-12 14:54 博客新手818 阅读(218) 评论(0) 推荐(0)
摘要: 一、基本的读取配置文件的操作 下面是配置文件: 读取上面配置文件的信息,首先要实例化ConfigParser对象,cf = configParser.ConfigParser() 1、cf.read("testcf.ini") 获取整个配置文件的内容 2、cf.sections() 获取文件中所有的 阅读全文
posted @ 2019-10-12 10:26 博客新手818 阅读(140) 评论(0) 推荐(0)