随笔分类 -  Python

摘要:import random def Verifi_code(): code = [] for i in range(6): if i == random.randint(1,5): code.append(str(random.randint(1,5))) else: temp = random.r 阅读全文
posted @ 2017-03-25 11:52 aallennty 阅读(123) 评论(0) 推荐(0)
摘要:# -*- coding: UTF-8 -*- import smtplib from email.mime.text import MIMEText msg = MIMEText('hello, send by Python...', 'plain', 'utf-8') from_addr = ' 阅读全文
posted @ 2017-03-25 11:52 aallennty 阅读(156) 评论(0) 推荐(0)