
Python PERL 脚本编程
文章平均质量分 63
metasearch
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
perl中目录句柄的操作(opendir, readdir, closedir)
从给定目录得到其文件名列表的方法还可以使用目录句柄(directory handle)。目录句柄外形及其行为都很像文件句柄。打开(使用opendir 而非 open),从中读入(使用 readdir而非 readline),关闭(使用 closedir 而非close)。不是读入文件的内容,而是将一个目录中的文件名(以及一些其它东西)读入,如下例:my $dir_to_proces原创 2010-04-15 13:38:00 · 12425 阅读 · 0 评论 -
Code Like a Pythonista: Idiomatic Python
Code Like a Pythonista: Idiomatic PythonContentsThe Zen of Python (1)The Zen of Python (2)Coding Style: Readability CountsPEP 8: Style Guide for Python CodeWhitespace 1Whitespace 2NamingLong转载 2013-01-06 16:21:10 · 2003 阅读 · 0 评论 -
wxPython-GDI tutorial
The GDIThe GDI (Graphics Device Interface) is an interface for working with graphics. It is used to interact with graphic devices such as monitor, printer or a file. The GDI allows programmers to di转载 2013-01-06 15:59:08 · 1863 阅读 · 0 评论 -
wxWidgets-GDI
Device ContextsThe GDI (Graphics Device Interface) is an interface for working with graphics. It is used to interact with graphic devices such as monitor, printer or a file. The GDI allows programme转载 2013-01-06 15:54:57 · 1178 阅读 · 0 评论 -
Device context overview- wxWidgets wxPython
Device context overviewClasses: wxBufferedDC, wxBufferedPaintDC, wxDC, wxPostScriptDC, wxMetafileDC, wxMemoryDC, wxPrinterDC, wxScreenDC, wxClientDC, wxPaintDC, wxWindowDC.A转载 2013-01-06 15:10:53 · 677 阅读 · 0 评论 -
Unicode与UTF-8互转(C语言实现)
1. 基础1.1 ASCII码我们知道, 在计算机内部, 所有的信息最终都表示为一个二进制的字符串. 每一个二进制位(bit)有0和1两种状态, 因此八个二进制位就可以组合出 256种状态, 这被称为一个字节(byte). 也就是说, 一个字节一共可以用来表示256种不同的状态, 每一个状态对应一个符号, 就是256个符号, 从 0000000到11111111.转载 2012-10-02 20:17:27 · 965 阅读 · 0 评论 -
python encode和decode函数说明
python encode和decode函数说明字符串编码常用类型:utf-8,gb2312,cp936,gbk等。python中,我们使用decode()和encode()来进行解码和编码在python中,使用unicode类型作为编码的基础类型。即 decode encodestr ---------> unicode --------->转载 2012-10-02 13:09:21 · 883 阅读 · 0 评论 -
Unicode Python encode decode的知识点总结
Python中有两种string对象,我们将字符串的类型是unicode的叫做unicode字符串,其他的都叫做str字符串。1 Unicode字符串、str字符串和其编码类型: unicode字符串是一个概念上的类型。在python中,这种类型是存在于在声明中,s=u'中国'和从str decode和从unicode编码文件读出来的结果中。 Unicode类型与其编码的类原创 2012-10-04 14:27:01 · 810 阅读 · 0 评论 -
How to use *args and **kwargs in Python
How to use *args and **kwargs in PythonDate: 2008-01-03 | Modified: 2010-03-15 | Tags: core, python | 85 Comments Or, How to use variable length argument lists in Python.The specia转载 2012-05-09 17:18:19 · 474 阅读 · 0 评论 -
Python 正则表达式
摘要 本文是通过Python的 re 模块来使用正则表达式的一个入门教程,和库参考手册的对应章节相比,更为浅显易懂、循序渐进。本文可以从 http://www.amk.ca/python/howto 捕获目录 目录[隐藏]1简介2简单模式2.1字符匹配2.2重复3使用正则表达式3.1转载 2012-04-30 18:21:50 · 474 阅读 · 0 评论 -
python urllib2模块
python urllib2模块2010年04月26日由Leyond发布在 Python留下评论本文转载自:Tinoweb的“ python urllib2模块”简介:urllib2是python的一个获取url(Uniform Resource Locators,统一资源定址器)的模块。它用urlopen函数的形式提供了一个非常简洁的接口。这使得用各种各样的协议转载 2012-03-21 14:38:03 · 684 阅读 · 0 评论 -
perl 模式匹配
一、简介 模式指在字符串中寻找的特定序列的字符,由反斜线包含:/def/即模式def。其用法如结合函数split将字符串用某模式分成多个单词:@array = split(/ /, $line); 二、匹配操作符 =~、!~原创 2010-04-16 14:49:00 · 726 阅读 · 0 评论 -
6 ways to download intraday data
Few months ago, I have made a post about where to find historical end-of-day data for the US market and I have listed 10 websites that provide such data free (10 ways to download historical stock qu转载 2013-01-29 15:26:12 · 1311 阅读 · 0 评论