12 2010 档案
摘要:#coding=utf-8import osimport string num = 1path = raw_input("Input the path:")if '' == path: path = os.getcwd()if not os.path.exists(path): print 'Path not exist!'else: for root, dirs, files in os.wa...
阅读全文
摘要:RGB2HEX Try it yourself: R: G: B: Try it yourself: R: G: B: 本文使用Blog_Backup未注册版本导出,请到soft.pt42.com注册。
阅读全文
摘要:import os # Create the file index include the sub directorydef create_file_index(index_file,path): """docstring for create_file_index""" fnum = 0 # os.walk() can list the content of sub directory for...
阅读全文
摘要:package eddy.wd;import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import java.net.HttpURLConnection;import java.net.URL;import java.net.URLEncoder;import java....
阅读全文
摘要:OS: Mac os X leopardCrossover 91. Open Crossover and select configure-> manage bottles->push the + button on the left downside of Manage Bottles window, give a name for your bottle and select which w...
阅读全文
摘要: 本文使用Blog_Backup未注册版本导出,请到soft.pt42.com注册。
阅读全文
摘要:python的第三方模块越来越丰富,涉及的领域也非常广,如科学计算、图片处理、web应用、GUI开发等。当然也可以将自己写的模块进行打包或发布。一简单的方法是将你的类包直接copy到python的lib目录,但此方式不便于管理与维护,存在多个python版本时会非常混乱。现介绍如何编写setup.py来对一个简单的python模块进行打包。一、编写模块进入项目目录#cd /home/pysetu...
阅读全文

浙公网安备 33010602011771号