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

python 1073

#Python
Python 解析 html

# coding=utf-8 import requests import lxml from lxml import html r = requests.get("http://…

2014-11-17 529

#Python
python撞库脚本

#conding=utf8 import smtplib import os import MySQLdb #字典获取方法 def getdic(file): dic = open…

2014-11-17 167

#Python
如何捅破python编程的那层纸之二

# coding:utf-8 """ 如何捅破python编程的那层纸之二 贴吧上有人问 定义一个函数,名字为sameSums(aList),alist是一个整形list (限定重…

2014-11-16 823

#Python
selenium简单模拟百度搜索点击器

#coding=utf-8 from selenium import webdriver import time browser = webdriver.Firefox() # 启…

2014-11-16 133

#Python
闲来无事,,,,一个“画图"

import Tkinter class mybutton: def __init__(self,root,canvas,label,types): self.root=root …

2014-11-15 352

#Python
OSCer 都在干嘛?

import requests import lxml from lxml import etree def get_content(url): try: headers = {'…

2014-11-15 469

#Python
备份sqlserver中的视图、函数、存储过程

#!/usr/bin/python # coding=gbk import os import re import time import datetime import oper…

2014-11-14 803

#Python
python3替换文本文件中的字符.py

#python3替换文本文件中的字符.py #努力把论坛变成一个花样编程论坛~哈哈~~~ f="a.txt" s="*.cn" t="FFF空格FFF" #方法1 字符替换 def…

2014-11-13 274

#Python
使用Python在指定目录搜索指定文件名

# -*- coding: utf-8 -*- ''' Created on 2014年12月1日 @author: zhrb ''' import os count = 0 de…

2014-11-13 631

#Python
Python爬虫-保存cookies,模拟登录的一些基础用法

import urllib2 import cookielib # 声明一个CookieJar对象实例来保存cookie cookie = cookielib.CookieJar(…

2014-11-13 524

#Python
print "hello python"

print "hello python"

2014-11-12 906

#Python
RedDog文字式猜点数游戏

运行结果 -------------------------------------------------------------------------------- 庄家:&…

2014-11-11 485
1 84 85 86 87 88 90