摘要: 本文主要是用163邮箱,其他邮箱也类似,把邮箱账号和密码、SMTP服务器和端口换成相应的即可。 # coding:utf-8 import smtplib from email.mime.text import MIMEText from email.utils import formataddr 阅读全文
posted @ 2019-04-15 10:36 大飞90 阅读(300) 评论(0) 推荐(0) 编辑
摘要: import time import schedule # cd C:\Python36-32\Scripts pip install schedule # py文件名字不能叫schedule,否则会报module 'schedule' has no attribute 'every' def he 阅读全文
posted @ 2019-04-15 10:29 大飞90 阅读(1963) 评论(0) 推荐(0) 编辑
摘要: import psutil # cd C:\Python36-32\Scripts pip install psutil # 获取本机磁盘使用率和剩余空间G信息 def get_disk_info(): # 循环磁盘分区 content = "" for disk in psutil.disk_pa 阅读全文
posted @ 2019-04-15 10:03 大飞90 阅读(6079) 评论(0) 推荐(0) 编辑