cn.bbs.comp.lang.python
  Home FAQ Contact Sign in
cn.bbs.comp.lang.python only
 
Advanced search
May 2008
motuwethfrsasuw
   1234 18
567891011 19
12131415161718 20
19202122232425 21
262728293031  22
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
cn.bbs.comp.lang.python Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  urllib2 中的proxy handle是实现设置代理功能的吗?         


Author: ´ð°¸
Date: May 14, 2008 23:05

谢谢

--
fs2you资源搜索: http://fs2you.org/

※ 来源:・水木社区 newsmth.net・[FROM: 122.200.72.*]
no comments
  发布一个纯python实现的简体和繁体转换软件         


Author: Leo
Date: May 14, 2008 20:45

软件主页:http://code.google.com/p/pyjft/

目的

这里说的是简体繁体转换,而不仅仅是编码转换。理由很简单:GBK编码或UTF8编码中本来就是包含简体和繁体的,因此即使在同一个编码体系内也是存在
简体和繁体转换的问题。

简而言之,本软件能实现不同编码体系或同一编码体系内简体到繁体的相互转换。软件基于标准的Python2.5版本,因此本质上是跨平台的。

使用

这个软件就是一个单独的python文件jft.py,主要调用接口是两个函数j2f(简体到繁体转换)和f2j(繁体到简体转换):

def j2f(sourceEncoding,destinationEncoding,sourceString):
'''
Simplified Chinese character to traditional Chinese character converter

Parameters:
sourceEncoding : The encoding codec name of string to be converted
destinationEncoding : The encoding codec name of output string
sourceString : The string to be converted

Return value:
The output traditional Chinese character string
'''
Show full article (1.73Kb)
no comments
  Re: 多行的正则表达式该怎么写?         


Author: ÍÞ¹þ¹þ
Date: May 14, 2008 06:52

re.VERBOSE
【 在 semibookworm (劣币驱逐良币) 的大作中提到: 】
: 比如原文是:
:
:
: ...................

--

※ 来源:・水木社区 newsmth.net・[FROM: 222.66.73.*]
no comments
  ÖлªµÄµØÕ𱨵ÀÈ«²¿ÊÇ»ÑÑÔ         


Author: postmaster
Date: May 14, 2008 06:27

no comments
  ¸ü¸øÓèÖлª±¨Ó¦!         


Author: hostmaster
Date: May 14, 2008 06:23

no comments
  Öлª½¨ÔìÎïÈ«²¿ÊÇ͵¹¤¼õÁÏµÄÆÆÀöù         


Author: root
Date: May 14, 2008 06:20

no comments
  Ìì·£µØÕðÊǷdz£Óä¿ì         


Author: postmaster
Date: May 14, 2008 06:14

no comments
  ÖйúÕþ¸®ÒòΪÊÇÊÀ½çµÚÒ»ÎÞÄÜ,µØÕðÊܺ¦À©´ó×Å         


Author: root
Date: May 14, 2008 06:08

no comments
  ÖйúÈËÒòΪÊÇÊÀ½çµÚÒ»±¿µ°,µØÕðÊܺ¦À©´ó×Å         


Author: postmaster
Date: May 14, 2008 06:02

no comments
  ÖйúµÄÊܺ¦µÄ´ó°ëÊÇÈË»ö         


Author: root
Date: May 14, 2008 05:59

no comments
1 2