暂无搜索历史
def URLtoUTF8(string): """""" g_code_type = ['utf-8', 'utf8', 'gb18030',...
from PIL import Image import qrcode #最小尺寸 1 会生成 21 * 21 的二维码,version 每增加 1...
Pyinotify是一个Python模块,用来监测文件系统的变化。 Pyinotify依赖于Linux内核的功能—inotify(内核2.6.13合并)。 in...
#!/usr/bin/python import sys input = sys.argv[1] fp = open(input,"r") ...
region DES加密解密 /// <summary> /// DES加密 /// </summary> /// <param name="strSource...
private static int Partition (int[] list, int i, int j) { int Key = list [i]...
通常,我们创建一个数组后就不能调整其长度,但是Array类提供了一个静态方法CreateInstance用来创建一个动态数组,所以我们可以通过它来动态调整数组的...
#!/usr/bin/env python coding=utf-8 import socket s = socket.socket(socket.AF_INE...
# print "Create a simple list" simpleList = ["Karmic", "Lucid", "Hardy", "Jaunty...
#!/usr/bin/env python coding: utf-8 import md5 import os from time import clock ...
微软提供的函数不能再多网卡的情况下,判断指定网卡的网线连接状态。以下代码刚好能够解决这个问题。
编辑距离的算法是首先由俄国科学家Levenshtein提出的,故又叫 Levenshtein Distance。一个字符串可以通过增加一个字符,删除一个字符,替...
SQLite这个精巧的小数据库,无需安装软件,只需要一个System.Data.SQLite.DLL文件即可操作SQLite数据库。SQLite是 一个开源数据...
import glob def file_list(): files=[] for file in glob.glob("*.pdb"): ...
原理先获取所有文件,然后统计每个文件中代码的行数,最后将行数相加,思路很简单。 import os import os.path import time roo...
from PIL import Image, ImageFilter, ImageOps img = Image.open('C:\Users\hen...
import smtplib import os from email.mime.text import MIMEText fro...
from PIL import Image, ImageDraw, ImageFont import os def water_work...
目前处在学习python的阶段,昨天看到了python的socket模块,分别实现TCP、UDP时间戳回显。
python检测远程udp端口是否打开 import socket import threading import time import struct imp...
暂未填写公司和职称
暂未填写个人简介
暂未填写技能专长
暂未填写学校和专业
暂未填写个人网址
暂未填写所在城市