UDPclient#!/usr/bin/env python2.7#-*-coding:utf-8
-*-import
sockets=socket.socket(socket.AF_INET,socket.SOCK_DGRAM)s.sendto("hello",("localhost",8001)...
分类:
编程语言 时间:
2014-07-22 23:17:33
阅读次数:
507
1 public DataTable ConvertToDataTable(IList
data) 2 { 3 PropertyDescriptorCollection properties = 4
TypeDescriptor.GetProperti...
分类:
其他好文 时间:
2014-07-22 23:17:12
阅读次数:
463
1、python2、selenium 2.03、日语TAT 尽量完成吧
分类:
其他好文 时间:
2014-07-22 23:15:53
阅读次数:
228
在做识别验证码时,需要对验证码图片进行一些处理,所以就学习了一下PIL的知识,下面是我总结的一些常用方法。注明:图片的操作都需要Image库,所以要使用import
Image导入库1.打开图片import Imageimg=Image.open("code.jpg")注:有些图片名称是包含中文的,...
分类:
编程语言 时间:
2014-07-22 23:15:52
阅读次数:
615
package com.kpsh.myself;import java.io.File;import
java.io.FileInputStream;import java.util.List;import
javax.xml.parsers.DocumentBuilder;import javax...
分类:
编程语言 时间:
2014-07-22 23:15:39
阅读次数:
320
1、打印操作会首先尝试__str__和str内置函数,他通常返回一个用户友好显示。__repr__用于所有其他环境,用于交互式模式下提示回应以及repr函数,如果没有使用__str__,则会使用print和str。它通常返回一个编码字符串,可以用来重新创建对象,或则给开发者一个详细的显示。总而言之,...
分类:
编程语言 时间:
2014-07-22 23:15:37
阅读次数:
687
使用DataTable作为存储过程的参数最近工作中写了几个存储过
程,需要向存储过程中传递字符串,因为SQL Server 2000中没有内置类似于 split
的函数,只好自己处理,将前台数据集中的一列用逗号拆分存到一个List中,再转化为字符串传给存储过程,很是麻烦。今天看了下SQL Serve...
分类:
数据库 时间:
2014-04-29 17:24:46
阅读次数:
434
参考资料: http://www.dotnet120.com/page/10545/
1.准备工作: 下载32位的JDK6 Java的开发包 下载32位的Eclipse 下载Python 2.x 2.安装JDK6
3.安装Eclipse和Python 4.给Eclipse安装PyDev插件 在Hel...
分类:
编程语言 时间:
2014-04-29 17:23:46
阅读次数:
432
1 /// 2 /// 将集合转换成DataTable 3 /// 4 /// 集合 5 /// 6
public static DataTable ToDataTable(IList list) 7 ...
分类:
其他好文 时间:
2014-04-29 17:22:46
阅读次数:
321
//冒泡排序publicclassbubblesorter{publicvoidsort(int[]list){inti,j,temp;booldone=false;j=1;while((jlist[i+1]){done=false;temp=list[i];list[i]=list[i+1];li...
分类:
其他好文 时间:
2014-04-29 17:21:45
阅读次数:
429