码迷,mamicode.com
首页 >  
搜索关键字:except    ( 6601个结果
IO多路复用,实现多线程监听
服务端 import socket sk1 = socket.socket() sk1.bind(('127.0.0.1',8001)) sk1.listen() sk2 = socket.socket() sk2.bind(('127.0.0.1',8002)) sk2.listen() sk3 ... ...
分类:编程语言   时间:2017-01-07 12:02:38    阅读次数:217
Python实现简单的记账本功能
目标: 1.使用序列化cPickle 2.账户中钱要大于花费的钱,否则提示请存钱 2.编写函数,实现存钱,花钱,查询及退出功能 1.序列化 pickle是python实现序列化的模块,次模块存在使用C语言编写模块,用法相同,但执行效率更高,所以优先使用C模块编写的序列化模块cPickle。 2.编写 ...
分类:编程语言   时间:2017-01-06 22:17:38    阅读次数:566
Spring获取ApplicationContext
在Spring+Struts+Hibernate中,有时需要使用到Spring上下文。项目启动时,会自动根据applicationContext配置文件初始化上下文,可以使用ApplicationContextAware接口去获得Spring上下文。创建以下的类: 在applicationConte ...
分类:移动开发   时间:2017-01-06 21:59:01    阅读次数:280
JavaScript 学习笔记——cssText
平常编写代码,更改一个元素样式的时候,自己都是用 obj.style.width = "200px"; obj.style.position = "absolute"; obj.style.left = "100px"; obj.style.width = "200px"; obj.style.po ...
分类:编程语言   时间:2017-01-06 21:48:06    阅读次数:210
test hypertext links for validity, accessibility, and recent modification
https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html The HEAD method is identical to GET except that the server MUST NOT return a message-body in th ...
分类:数据库   时间:2017-01-06 14:18:58    阅读次数:193
Unhandled Exception:System.DllNotFoundException: Unable to load DLL"**"
在项目中使用C#代码调用C++ DLL时。常常会出现这个问题: Unhandled Exception:System.DllNotFoundException: Unable to load DLL"**"。 ...
分类:其他好文   时间:2017-01-05 18:11:11    阅读次数:374
python爬取数据保存入库
import urllib2 import re import MySQLdb class LatestTest: #初始化 def __init__(self): self.url="https://toutiao.io/latest" self.UserAgent='Mozilla/5.0 (W... ...
分类:编程语言   时间:2017-01-05 09:52:16    阅读次数:262
Python 自动化开发_基本语法
一.python 入门 1.1 python 中文编码 在学习python中文编码之前,我们需要了解一下什么是编码: 编码是用预先规定的方法将文字、数字或其他对象编成数码,或将信息转换成规定的电脉冲信号.编码是信息从一种形式或格式转换为另一种形式的过程. 然而我们需要了解的字符编码如下: ASCII ...
分类:编程语言   时间:2017-01-04 23:23:05    阅读次数:235
java-JDBC从数据库中读取数据并进行日期民族男女的转换
代码如下: ...
分类:数据库   时间:2017-01-04 21:52:18    阅读次数:253
linux网络编程
A: osi七层: 应用层 用 表示层 户 会话层 态 ******************************** 传输层 内 网络层 核 数据链路层 态 物理层 a1: 传输层协议: tcp(传输控制协议):可靠的,面向连接的(连接,通信,断开连接) ** tcp连接(三次握手连接) tcp ...
分类:系统相关   时间:2017-01-04 21:26:30    阅读次数:227
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!