
python
燕郊炒家
你不知道你,所以你是你。如果你知道你,你就不是你。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
【Python】 学习写一个线程
最近开始学习Python,先开始学习写一个线程,跑起来,示例如下:import threadingdef _worker_(workerNm): print(workerNm)for i in range(5): t = threading.Thread(target=_worker_,args=('thread-pool-' + str(i),)); t.star...原创 2018-02-10 22:36:38 · 217 阅读 · 0 评论 -
【Python】 使用QQ邮件服务器发送邮件
之前发送邮件都是使用Java代码实现的,今天用Python写一个发送邮件的例子,我认为底层原理应该是一样的,都是需要调用到Mail服务器API进行发送邮件。#!/usr/bin/python# -*- coding: UTF-8 -*-import smtplibfrom email.mime.text import MIMEText#函数def sendEmail(toAddr,...原创 2018-02-11 10:44:27 · 330 阅读 · 0 评论