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

python 1073

#Python
购物

#!/usr/bin/env python import sys '''简单的购物菜单,根据输入的金额,减去选择的商品得到剩下的金额, 一旦省下的金额小于所有的商品价格,提示余额不…

2014-11-25 272

#Python
ip反查

#!/usr/bin/python2.7 # -*- coding:utf-8 -*- import urllib,urllib2 import re import subproc…

2014-11-21 179

#Python
python列表切片读取csv数据计算导购客单价.py

""" python列表切片读取csv数据计算导购客单价.py 题目来源 https://github.com/FGFW/FCNNIC 依山居 19:44 2015/11/22 计…

2014-11-21 358

#Python
使用C++扩展python

// demo.cpp : 定义控制台应用程序的入口点。 // #include "Python.h" int add(int a, int b) { return (a+b); …

2014-11-19 687

#Python
匹配IP和匹配域名

class JianKong(): '''查询IDC信息,封ip和过白名单''' def __init__(self): pass @classmethod def ip_veri…

2014-11-19 358

#Python
统计文件中去重后的uuid个数

import re pattern=re.compile(r'&uuid=.*&') uuidset=set() with open('request.log.20…

2014-11-19 362

#Python
指定文件备份工具

#!/usr/bin/python """ 2015.07.07 store all the specified kind of files to the DEST Edit by…

2014-11-19 1,002

#Python
使用map和reduce实现阶乘求和

""" 使用map和reduce实现阶乘求和 x!+(x-1)!+(x-2)!+...+1! x! = x * (x-1) * (x-2) * ... * 1 0! = 1 """…

2014-11-18 802

#Python
python编程思路

python北京周末培训班 https://github.com/pythonpeixun/article/blob/master/beijing_weekend.md pytho…

2014-11-18 813

#Python
用番号搜索磁力连接

#!/usr/bin/env python #coding=utf8 import sys import urllib2 import re def query_magnet(ke…

2014-11-18 1,005
1 83 84 85 86 87 90