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

python 1073

#Python
将天气情况设置为桌面壁纸

#!/usr/bin/env python # -*- coding: utf-8 -*- # #-----------------------------------------…

2015-01-27 121

#Python
一个检测某网页依赖第三方资源的 python 脚本

#!/usr/bin/env python # -*- coding: utf8 -*- # 通过输入的网址获取其依赖的站点(html中引用到的) # 依赖文件格式如下: # *.…

2015-01-25 198

#Python
从百度的API获取天气

__author__ = 'saint' import os import urllib.request import urllib.parse import json class…

2015-01-25 866

#Python
将数据库里的博文(html标签)的转换为markdown格式

#encoding=utf-8 # -*- coding: utf-8 -*- #将在sae上部署的博客文章html格式批量转换为github宜用的markdown样式文章 '''…

2015-01-25 158

#Python
可以指定要生成的密码长度的Python代码

可以指定要生成的密码长度的Python代码 from os import urandom from random import choice char_set = {'small'…

2015-01-24 810

#Python
找出a-b之间的质数

def prime(b): t=b/2 for i in range(2,t+1): if b%i==0: break else: return b if __name__=="_…

2015-01-24 168

#Python
python读文本中的第一列内容生成BAT文件.py

""" python读文本中的第一列内容生成BAT文件.py gayhub https://github.com/FGFW/FCNNIC http://www.bathome.ne…

2015-01-24 648

#Python
python中的字典用法示例

#!/usr/bin/env python # # [SNIPPET_NAME: Dictionaries 101] # [SNIPPET_CATEGORIES: Python C…

2015-01-24 539

#Python
Python中数组用法大全

#!/usr/bin/env python # # [SNIPPET_NAME: Lists 101] # [SNIPPET_CATEGORIES: Python Core] # …

2015-01-24 951

#Python
python自动裁剪图像

本代码可以帮你自动剪切掉图片的边缘空白区域,如果你的图片有大片空白区域(只要是同一颜色形成一定的面积就认为是空白区域),下面的python代码可以帮你自动切除,如果是透明图像,会自…

2015-01-24 1,009

#Python
Python简单调用WebService

from elementsoap.ElementSOAP import * class QuoteService(SoapService): url = "http://…

2015-01-24 179

#Python
通过代理服务器访问FTP的Python代码

import urllib2 # Install proxy support for urllib2 proxy_info = { 'host' : 'proxy.myisp.co…

2015-01-24 653
1 70 71 72 73 74 90