码迷,mamicode.com
首页 >  
搜索关键字:python email from to    ( 191911个结果
如何在Windows 下安装Python
1、 安装源程序的选择官网:https://www.python.org/downloads/选择版本下载,根据实际计算机位数(64位),下载的为:Python-2.7.10.amd64.msi (18.48M) 下载完后安装,选择路径“D:\zero\Python27”,后finish。2、 环境...
分类:编程语言   时间:2015-10-03 20:41:02    阅读次数:170
这些练习并没有多少用,但舍不得就扔了,作个记录吧。
打了一下午球,感觉爽爽的。。晚上更新一下练习进度,然后,马上陪老爸看亚锦赛男篮决塞罗。。中国VS菲律宾。from django.shortcuts import renderfrom django.http import Http404from django.shortcuts import get...
分类:其他好文   时间:2015-10-03 20:40:15    阅读次数:180
【Python之旅】第五篇(一):Python Socket通信原理
只要和网络服务涉及的,就离不开Socket以及Socket编程,下面就说说PythonSocket通信的基本原理。1.Socketsocket也称作“套接字”,用于描述IP地址和端口,是一个通信链的句柄。应用程序通常通过“套接字”向网络发出请求或者应答网络请求。可以列举中国移动或者是中国电信等的..
分类:编程语言   时间:2015-10-03 19:32:54    阅读次数:246
【Python之旅】第五篇(二):Python Socket单线程+阻塞模式
前面第五篇(一)中的一个Socket例子其实就是单线程的,即Server端一次只能接受来自一个Client端的连接,为了更好的说明socket单线程和阻塞模式,下面对前面的例子做修改。1.单线程+阻塞+交互式前面的例子是单线程阻塞和非交互式的,现在改写为交互式的,即不会执行一次就结束..
分类:编程语言   时间:2015-10-03 19:32:51    阅读次数:287
第二章 python中重要的数据结构(下)
二、元组(tuple):不可变序列 跟list一样,也是一种序列,唯一不同的是,元组元素不能被修改,通常用(, ,)表示元组,也可以不加括号。 1 #创建元组 2 >>> 1,2,3 3 (1, 2, 3) 4 >>> t = (1,2,3) 5 >>> t 6 (1, 2, 3) 7 #创建空元组...
分类:编程语言   时间:2015-10-03 19:25:25    阅读次数:215
leetcode Construct Binary Tree from Inorder and Postorder Traversal
Given inorder and postorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.遇到二叉树问题最先想到的是递...
分类:其他好文   时间:2015-10-03 18:16:44    阅读次数:200
Spark运行各个时间段的解释
package org.apache.spark.uiprivate[spark] object ToolTips { val SCHEDULER_DELAY = """Scheduler delay includes time to ship the task from the scheduler...
分类:其他好文   时间:2015-10-03 18:03:03    阅读次数:267
ERROR 1045 (28000): Access denied for user
错误描述: Mysql中添加用户之后可能出现登录时提示ERROR 1045 (28000): Access denied for user的错误.删除user.user中值为NULL的,或更新NULL为test 1)delete from user where user is NULL 2)upda...
分类:数据库   时间:2015-10-03 15:32:11    阅读次数:158
使用urllib编写python爬虫
新版python中,urllib和urllib2合并了,统一为urllib(1)简单爬取网页import urllibcontent = urllib.request.urlopen(req).read().decode("utf-8")(2)添加headerimport urllibreq = u...
分类:编程语言   时间:2015-10-03 14:20:07    阅读次数:216
82. Remove Duplicates from Sorted List II (List)
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. For example,Given 1->2...
分类:其他好文   时间:2015-10-03 11:56:00    阅读次数:146
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!