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

python 1073

#Python
python破解狂人TD4.3积分代码

#-*-coding:gb2312-*- #python破解狂人TD4.3积分代码2优化 #依山居 10:05 2015/11/3 #本程序用于生成魔兽争霸3地图狂人TD4.3 所…

2015-07-04 978

#Python
检测文件流中特定字符后触发

#!/usr/bin/python # coding: utf-8 from subprocess import Popen, PIPE p1 = Popen("tail -f /…

2015-07-03 574

#Python
打印列表内容

values = [4, 10, 3, 8, -6] for i in range(len(values)): print(i, values[i])

2015-07-02 535

#Python
二进制小数

# -*- coding:utf-8 -*- class BinDecimal: def printBin(self, num): aa = num*2 rest = [] res…

2015-07-02 303

#Python
ElasticSearch 数据导入导出工具

''' Export and Import ElasticSearch Data. Simple Example At __main__ @author: wgzh159@163.…

2015-07-01 839

#Python
一首mp3歌每半小时播放一次

import mp3play, time filename = "Should It Matter.mp3" clip = mp3play.load(filename) while…

2015-07-01 221

#Python
python简单爬虫

import re import urllib import urllib.request from collections import deque queue = deque(…

2015-07-01 367

#Python
简单的sqlite3数据库操作实例

import sqlite3 class database: def __init__(self, **kwargs): self.filename = kwargs.get('f…

2015-06-30 997

#Python
google hosts不解释

#!/usr/bin/python3 #coding=utf-8 import os import sys import urllib.request req_hosts=urll…

2015-06-28 953

#Python
python如何将数组分成几个区间,取每个区间的最大值存到另一个数组里

第一种方法: # coding:utf-8 """ 黄哥python远程视频培训班 https://github.com/pythonpeixun/article/blob/mas…

2015-06-28 315

#Python
python生成字母验证图片

from PILimport Image, ImageDraw, ImageFont import random def generate_authenticode(): &nbs…

2015-06-28 646
1 34 35 36 37 38 90