码迷,mamicode.com
首页 >  
搜索关键字:python 邮件 smtplib 抄送    ( 147673个结果
python调用c代码2
1、生成动态链接库[root@typhoeus79 c]# more head.c #include #include typedef struct _point{ int x; int y;}Point;Point * InitPoint(int x,int y){ Point ...
分类:编程语言   时间:2014-06-18 15:45:00    阅读次数:267
Android 使用 Gmail 来发送邮件
Android 使用 Gmail 来发送邮件1.[代码]SendMail.javapackage org.apache.android.mail; import android.app.Activity;import android.os.Bundle;import android.util.Log...
分类:移动开发   时间:2014-06-18 15:22:44    阅读次数:243
python+MySQL
Python中使用MySQL的方法具体可见:http://www.w3cschool.cc/python/python-mysql.html需要注意的是编码问题:要在多个地方设置为UTF8,具体可见:http://drizzlewalk.blog.51cto.com/2203401/448874同时...
分类:数据库   时间:2014-06-18 15:02:28    阅读次数:245
Python模拟HTTP Post上传文件
使用urllib2模块构造http post数据结构,提交有文件的表单(multipart/form-data),本示例提交的post表单带有两个参数及一张图片,代码如下:#buld post body data boundary = '----------%s' % hex(int(...
分类:编程语言   时间:2014-06-18 14:55:59    阅读次数:283
sys.argv用法
argv是在脚本内部使用,旨在接受命令传参比如,一个脚本argv.py,代码里面有,sys.argv[1],,sys.argv[2],那么运行这个脚本时,必须在后面跟两个参数,用空格隔开,如:python argv.py hello world 示例如下:首先编辑脚本 argv.py#coding:...
分类:其他好文   时间:2014-06-18 14:35:13    阅读次数:191
(转)python set 用法
转载自:http://hi.baidu.com/????_xu/blog/item/5b9650c513bd3f049d163d8b.htmlpython的set和其他语言类似, 是一个 基本功能包括关系测试和消除重复元素. 集合对象还支持union(联合),intersection(交), dif...
分类:编程语言   时间:2014-06-18 14:30:05    阅读次数:243
python2.7中可以使用到的一些模块地址
1、reportlab:由很多部分组成且允许用户使用多种方法创建输出,地址:下载ReportLabhttps://pypi.python.org/simple/reportlab/http://www.reportlab.com/software/opensource/rl-toolkit/down...
分类:编程语言   时间:2014-06-18 14:22:27    阅读次数:313
Django学习笔记——安装(linux环境)
1. 下载安装Djangopip install Django==1.6.5测试是否安装成功>>> import django>>> djan.VERSION>>> django.VERSION(1, 6, 5, 'final', 0)2. 安装数据库MySQL说明:使用python连接到MySQL...
分类:系统相关   时间:2014-06-18 13:10:48    阅读次数:288
用python.twisted.logfile每天记录日志,并用不记录stdout中的内容
#导入的头from twisted.python import logfrom twisted.python.logfile import *#开始记录,输入日志名和存放的路径,setStdout为0不记录stdout的内容,默认setStdout=1,记录print的输出log.startLog....
分类:编程语言   时间:2014-06-17 21:09:45    阅读次数:332
[数据结构与算法分析(Mark Allen Weiss)]二叉树的插入与删除 @ Python
二叉树的插入与删除,来自Mark Allen Weiss的《数据结构与算法分析》。# Definition for a binary tree nodeclass TreeNode: def __init__(self, x): self.val = x self...
分类:编程语言   时间:2014-06-17 14:25:01    阅读次数:291
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!