首页 软件开发 代码片段 python ( Page 63 )

python 1073

#Python
统计贴吧股票吧某天的回帖量

# encoding:utf-8 import urllib, urllib2 from pprint import pprint from collections import …

2015-04-02 146

#Python
识别手写数字,集成django web应用

# import the necessary packages import pandas as pd from sklearn.ensemble import RandomFor…

2015-04-01 275

#Python
python读写dbf文件

读取遍历dBASE或Xbase文件中的记录。从Python的序列创建DBF文件。 import struct, datetime, decimal, itertools def d…

2015-04-01 799

#Python
Python ftp client 处理含有中文的文件名

# -*- coding:utf-8 -*- ''' ftplib库的读写操作 文件名中含有中文的特殊处理: 收到的为utf-8格式的字符串,在保存时需要使用unicode编码的文…

2015-04-01 235

#Python
python生成417条形码(PDF417)

#-*- encoding: utf-8 -*- from elaphe.pdf417 import Pdf417 import os import pygame import s…

2015-03-31 238

#Python
计算单词发音的准确性

import web import sys import os import numpy as np import fastdtw from scikits.audiolab im…

2015-03-30 887

#Python
狂人TD4.32 积分代码生成

import random #快银闪电侠 22:56 2015/10/18 星期日 #狂人TD4.32 积分代码生成 l="abcdefghijklmnopqrstuvwxyz" …

2015-03-30 569

#Python
py数据单位转换

def ByteFormat(size,unit='Bytes'): units = ['Bytes','KB','MB','GB','TB','PB'] return ('%.2…

2015-03-29 263

#Python
#python版一行内容分行输出

#python版一行内容分行输出 #依山居 18:14 2015/11/4 #题目来源 http://www.bathome.net/thread-1454-1-1.html a=…

2015-03-29 599

#Python
python自动格式化json文件

class JsonFormatter: def __init__(self,intend=4,name=""): self.name=name self.intend=inten…

2015-03-28 491

#Python
python实现ftp上传文件

mport ftplib, sys ftp1 = ftplib.FTP('127.0.0.1', 'book', 'bookpw') ftp1.cwd('/Dir') ftp2 =…

2015-03-27 721
1 61 62 63 64 65 90