当前位置:首页 » 编程博文
开发技术指南» 文章正文
    引言: #!/usr/bin/python# -*- coding: c
 

 

 ·最简单的java分页算法。。    »显示摘要«
    摘要:定义两个vector,一个为储存查询所有记录的totalv,另一个储存当前页的记录currentpagev;总的记录数:int totalsize = totalv.getsize();每页显示的记录数:int countperpage;总页数:int totalpagenum = totalsize/countperpage; //如果总的记录数和每页记录数的余数大于零, //那么总的页数为......
 ·显示code39条形码的php类    »显示摘要«
    摘要:<?/*********************************************************************** written by caocao caocao@eastday.com http://nethermit.yeah.net 显示code39条形码的类 使用方法: $convert=new code39; $str=$conv......


将GBK汉字转化为拼音的Python小程序

#!/usr/bin/python

# -*- coding: cp936 -*- 【程序编程相关:jasperreport常遇到的问题及解

【推荐阅读:(转载)SQL Injection (資

【扩展信息:有关文档的实用性要求——来自《文档审核意

#################################

#   written by caocao           #

#   caocao@eastday.com          #

#   http://nethermit.yeah.net   #

#################################

import sys

import re

import string

class cconvert:

 def __init__(self):

  "load data table"

  try:

   fp=open("convert.txt")

  except ioerror:

   print "can´t load data from data.txt\nplease make sure this file exists."

   sys.exit(1)

  else:


...   下一页
 ·轻量级xml解析器    »显示摘要«
    摘要:tinyxml用来解析个配置文件什么的不错哦。主页www.grinninglizard.com/tinyxml/sourceforge.net/projects/tinyxml/顺便介绍一本书learning standard c++ as a new language(http://www.research.att.com/~bs/new_learning.pdf),bjarne stroust......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE