OpenCV-Python

12-27 1,018 views

OpenCV-Python OpenCV-Python Installing OpenCV from prebuilt binaries Below Python packages are to be downloaded and installed to their default lo...
阅读全文 0

Python 乱码解决

12-06 920 views

''.decode(sys.getfilesystemencoding())
阅读全文 0

python hideconsole

12-04 1,181 views

def hideConcole(): import ctypes kernel32 = ctypes.WinDLL('kernel32') user32 = ctypes.WinDLL('user32') SW_HIDE = 0 hWnd = k...
阅读全文 0

pysqlite or sqlite3 must be installed

12-04 888 views

peewee pysqlite or sqlite3 must be installed download and install sqlite3 sqlite3-source tar xf sqlite-autoconf-3210000.tar.gz cd sqlite-autoconf-...
阅读全文 0

peewee orm

11-24 783 views

http://docs.peewee-orm.com/en/latest/peewee/quickstart.html https://github.com/coleifer/peewee https://github.com/coleifer/peewee/blob/master/docs...
阅读全文 0

python orm sqlalchemy peewee

11-24 890 views

http://xiaorui.cc/2015/10/09/%E8%81%8A%E8%81%8Apython%E7%9A%84%E8%BD%BB%E9%87%8F%E7%BA%A7orm-peewee%E5%8F%8A%E5%AF%B9%E6%AF%94sqlalchemy/
阅读全文 0

tornado static file handler

11-23 840 views

# _*_ coding:UTF-8 import tornado.ioloop import tornado.web from protocol import typhoon_pb2 import utils import os import re routeMapping = { '...
阅读全文 0

python 检测IPv4是否为局域网IP

11-20 804 views

def is_internal_ip(ip): ip = ip_into_int(ip) net_a = ip_into_int('10.255.255.255') >> 24 net_b = ip_into_int('172.31.255.255') &...
阅读全文 0

python logging compression

9-22 1,601 views

https://stackoverflow.com/questions/8467978/python-want-logging-with-log-rotation-and-compression import logging import logging.handlers import zi...
阅读全文 1

python flask

9-01 992 views

http://flask.pocoo.org/docs/0.12/quickstart/#routing import flask import re import os import utils import mimetypes fileMapping = { '^index$': ...
阅读全文 0