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

python 1073

#Python
三门问题模拟

#!/usr/bin/python import random def get_input(): i = 100; while(1): inp = raw_input(); if …

2014-11-11 188

#Python
创建openstack云主机

#coding:utf-8 from novaclient.v2.client import Client from novaclient import utils usernam…

2014-11-10 548

#Python
判断企业工商注册码是否正确

#coding: utf-8 def getchecknum(input): ##定义企业注册码校验码计算函数 n = 10 for num in range(len(input)…

2014-11-09 601

#Python
用GET方法上传文件

import requests #需要安装requests with open('test.txt', 'rb') as f: requests.get('http://127.0…

2014-11-09 662

#Python
一個簡單的 python curses dialog library

#!/usr/bin/env python3 # --*-- coding: utf-8 --*-- from distutils.core import setup setup(…

2014-11-08 959

#Python
web小工具

# -*- coding: utf-8 -*- from PyQt4 import QtCore, QtGui from PyQt4.QtCore import * from Py…

2014-11-08 281

#Python
python 3个文件合并成3列.py

""" python 3个文件合并成3列.py 依山居 7:47 2015/12/15 先写个简单的实现。主要是itertools.zip_longest()的用法: https:…

2014-11-07 395

#Python
Python3 读取文本文件插入到Mysql数据库

# -*- coding:utf8 -*- #读取冰箱数据并插入到数据库 import time,os,glob,mysql.connector def formatTime(mi…

2014-11-07 854

#Python
解析jquery param

# -*- coding: utf-8 -*- ''' orgin from https://bitbucket.org/k_bx/jquery-unparam now more …

2014-11-07 274

#Python
PyQt progress bar

#!/usr/bin/env python # --*--codig: utf8 --*-- from PyQt4 import QtGui from PyQt4 import Q…

2014-11-06 326

#Python
风行网vip电影播放地址解析

#!/usr/bin/evn python #coding=utf8 #author:nssprite@gmail.com #date:2014-12-26 import sys …

2014-11-04 549

#Python
终端播放音乐同步显示本地或网络歌词

#!/usr/bin/python # -*- encoding:utf-8 -*- #========================================= # Fi…

2014-11-01 534