易截截图软件、单文件、免安装、纯绿色、仅160KB

arcgis python脚本

Script Name: Spider_Create   
#Script Label: Create Spider Diagrams   
#   
#Description:  Custom python script developed to create spider diagrams from points contained   
#in one or two feature classes.  If using two feature classes, one feature class must contain   
#the origins and the other must contain the destinations.   
#   
#Source Script File: Spider_Create.py   
#Programming Language: Python 2.4   
#ArcGIS Version: ArcGIS 9.2   
#Author: Anthony Palmer, U.S. Army Corps of Engineers, Tennessee-Tombigbee Waterway   
#Email: anthony.g.palmer@sam.usace.army.mil   
#Date: 04/04/2007   
#   
#Parameters:   
#   
#           Display Name                         Data Type        Type      Direction  MultiValue  Dependency   
#  argv[1]  Origin Point Feature Class           Feature Class    Required  Input      No   
#  argv[2]  Select Subset of Origins             SQL Expression   Optional  Input      No          Origin Point Feature Class   
#  argv[3]  Select Origin Key Field              Field            Required&n


相关文档:

python 中minidom解析xml

python 中minidom解析xml
2009年06月26日 星期五 08:40
下面只列出一些常用的方法属性,如果要查看更多的方法, 可以去看文件minidom如何实现的。
获得Document对象
法一:
import xml.dom.minidom as m_dom
doc1 = m_dom.getDOMImplementation().createDocument(None, "root1", None)
doc1.documentElement.toxml(e ......

Python装饰器

一颗语法糖——装饰器
理论不去管,只管能办事:
1.  我要让一个函数在执行的时候,去做一些事情,比如,我要看看这些函数是不是有docstring,将这个功能拿出来,定义一个装饰器:
def showmedoc(func):
     if func.__doc__:
        & ......

使用python操作串口

一、
为了使用python操作串口,首先需要下载相关模块:
1. pyserial (http://pyserial.wiki.sourceforge.net/pySerial)
2. pywin32 (http://sourceforge.net/projects/pywin32/)
二、
google “python 串口 操作”关键字,找到相关python代码,
我是从http://currentlife.blog.sohu.com/53741351.html页面上 ......

pylibpcap: python module for libpcap

#!/usr/bin/env python2
import pcap
import sys
import string
import time
import socket
import struct
protocols={socket.IPPROTO_TCP:'tcp',
           socket.IPPROTO_UDP:'udp',
           socket ......

Python多线程 简明例子

综述
 
  多线程是程序设计中的一个重要方面,尤其是在服务器Deamon程序方面。无论何种系统,线程调度的开销都比传统的进程要快得多。
 
Python可以方便地支持多线程。可以快速创建线程、互斥锁、信号量等等元素,支持线程读写同步互斥。美中不足的是,Python的运行在Python
虚拟机上,创建的多线程可 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号