摘要: 1 import smtplib 2 from email.mime.text import MIMEText 3 from email.header import Header 4 5 mail_host = "192.168.1.65" # 设置服务器 6 mail_user = "admin@ 阅读全文
posted @ 2021-01-15 14:11 leejay_python 阅读(708) 评论(0) 推荐(0) 编辑
摘要: 1 #!/usr/bin/python 2 3 import poplib 4 import os 5 6 logs_dir = "pop3_logs" 7 if not os.path.isdir(logs_dir): 8 os.mkdir(logs_dir) 9 10 username = "c 阅读全文
posted @ 2021-01-15 14:06 leejay_python 阅读(493) 评论(0) 推荐(0) 编辑
摘要: 1 #!/usr/bin/python 2 # -*- coding:UTF-8 -*- 3 4 import imaplib 5 import os 6 7 imap_dir = "imap_logs" 8 if not os.path.isdir(imap_dir): 9 os.mkdir(im 阅读全文
posted @ 2021-01-15 14:04 leejay_python 阅读(505) 评论(0) 推荐(0) 编辑
摘要: 1 #/usr/bin/python 2 # -*- coding:utf-8 -*- 3 4 import ConfigParser 5 import os 6 import subprocess 7 import re 8 import datetime 9 10 """ 11 备份数据库 12 阅读全文
posted @ 2021-01-15 14:01 leejay_python 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 1 #!/usr/bin/python 2 # -*- coding:utf-8 -*- 3 import os 4 5 print "查看公网IP:" 6 os.system('curl icanhazip.com') 阅读全文
posted @ 2021-01-15 13:56 leejay_python 阅读(64) 评论(0) 推荐(0) 编辑
摘要: 1 #!/usr/bin/python 2 # -*- coding:utf-8 -*- 3 4 import subprocess 5 import datetime 6 7 now_time = datetime.datetime.now().strftime('%Y-%m-%d_%H_%M') 阅读全文
posted @ 2021-01-15 13:53 leejay_python 阅读(453) 评论(0) 推荐(0) 编辑
摘要: 1 #!/usr/bin/python 2 # -*- coding:utf-8 -*- 3 import subprocess 4 import datetime 5 import re 6 import os 7 import tarfile 8 import time 9 import shu 阅读全文
posted @ 2021-01-15 13:25 leejay_python 阅读(198) 评论(0) 推荐(0) 编辑