Quantcast
Channel: CodeSection,代码区,Python开发技术文章_教程 - CodeSec
Browsing all 9596 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

如何拿到半数面试公司Offer?我的Python求职之路

一直有爱看美剧的习惯,一方面锻炼一下英语听力,一方面打发一下时间。之前是能在视频网站上面在线看的,可是自从**的限制令之后,进口的美剧英剧等貌似就不在像以前一样同步更新了。但是,作为一个宅diao的我又怎甘心没剧追呢,所以网上随便查了一下就找到一个能用迅雷下载的美剧下载网站【天天美剧】,各种资源随便下载,最近迷上的BBC的高清纪录片,大自然美得不要不要的。...

View Article


Return of the Yo notifications

05 Sep 2016 Last time, took our first steps to notify our users about updates in a slight nicer way. This time we are going to modify our script so that our users are only bugged once a day, and also...

View Article


Image may be NSFW.
Clik here to view.

个人关于python装饰器的白痴理解

无参数装饰器 对于python小白来说,python的装饰器简直让人懵逼,不知如何理解,其实按照装饰器的字面意思, 就是把自己定义的函数装饰一遍,然后返回一个新的函数(注意是新的,已经不是本来定义的函数了) 为什么这么说,我用一个装饰器最原始的例子来说明,看一下代码: 1 #装饰函数 2 def decorator(foo): 3 def wrapper(): 4 print 'wrapper' 5...

View Article

SICP Python 描述 3.4 异常

3.4 异常 来源: 3.4 Exceptions 译者:飞龙 协议: CC BY-NC-SA 4.0 程序员必须总是留意程序中可能出现的错误。例子数不胜数:一个函数可能不会收到它预期的信息,必需的资源可能会丢失,或者网络上的连接可能丢失。在设计系统时,程序员必须预料到可能产生的异常情况并且采取适当地措施来处理它们。 处理程序中的错误没有单一的正确方式。为提供一些持久性服务而设计的程序,例如 Web...

View Article

Image may be NSFW.
Clik here to view.

python3编码问题

继续收集python3编码问题相关资料 资料来源 鹏程的新浪博客(转载)http://blog.sina.com.cn/s/blog_6d7cf9e50102vo90.html 这篇鹏程老师写的关于python3的编码的博客写的特别的清楚,直接就摘入下来。供自己作为参考。 1.从字节说起:...

View Article


Image may be NSFW.
Clik here to view.

OCR技术浅探:2. 背景与假设

作者:苏剑林 来源网站:科学空间 原文链接: OCR技术浅探:2. 背景与假设 研究背景 关于光学字符识别(Optical Character Recognition, 下面都简称OCR),是指将图像上的文字转化为计算机可编辑的文字内容,众多的研究人员对相关的技术研究已久,也有不少成熟的OCR技术和产品产生,比如汉王OCR、ABBYY FineReader、Tesseract OCR等....

View Article

OCR技术浅探:9. 代码共享(完)

作者:苏剑林 来源网站:科学空间 原文链接: OCR技术浅探:9. 代码共享(完) 文件说明: 1. image.py――图像处理函数,主要是特征提取; 2. model_training.py――训练CNN单字识别模型(需要较高性能的服务器,最好有GPU加速,否则真是慢得要死); 3. ocr.py――识别函数,包括单字分割、前面训练好的模型进行单字识别、动态规划提升效果; 4....

View Article

Image may be NSFW.
Clik here to view.

1D 1H NMR dataprocessing

1D 1 H NMR is a common technique applied to metabolomic studies, being well suited to untargeted analysis of complex biofluids. It has been successfully applied to the classification and diagnosis of a...

View Article


Image may be NSFW.
Clik here to view.

python学习笔记:2.面向对象

一个py文件,就是一个模块(module),相同函数和变量名可以存在不同的模块中。一个py模块就是一个类,可以这么理解 为了避免类的冲突,引入包的概念。注意每一个包下面,都会有一个 init .py的文件,他的模块名就是包名 作用域 正常的函数和变量名是公开的(public),可以被直接引用,比如:abc,x123,PI等; 类似_xxx和...

View Article


Python中的并发 - 进程篇Ⅱ

多进程共享数据 先来看一段错误的代码 import multiprocessing global_num = 0 mutex = multiprocessing.Lock() def func(): global global_num, mutex for i in xrange(10000): with mutex: global_num += 1 process = [] for i in...

View Article

Django 模版语言详解

一.简介 模版是纯文本文件。 它可以产生任何基于文本的的格式(HTML,XML,CSV等等)。 模版包括在使用时会被值替换掉的 变量 ,和控制模版逻辑的 标签 。 例: {% extends "base_generic.html" %}{% block title %}{{ section.title }}{% endblock %}{% block content %}<h1>{{...

View Article

SICP Python 描述 3.5 组合语言的解释器

3.5 组合语言的解释器 来源: 3.5 Interpreters for Languages with Combination 译者:飞龙 协议: CC BY-NC-SA 4.0...

View Article

Image may be NSFW.
Clik here to view.

Mike Driscoll: PyDev of the Week: Reinout van Rees

This week we welcome Reinout van Rees ( @reinoutvanrees ) as our PyDev of the Week! Reinout is the creator / maintainer of zest.releaser . He has a nice website that includes a python blog that you...

View Article


Image may be NSFW.
Clik here to view.

OpenCV + Python 人脸检测 - 更上一层楼! - 博客频道 - CSDN.NET

下午的时候,配好了OpenCV的python环境, OpenCV的Python环境搭建 。于是迫不及待的想体验一下opencv的人脸识别,如下文。 必备知识 Haar-like Haar-like百科释义 。通俗的来讲,就是作为人脸特征即可。 Haar特征值反映了图像的灰度变化情况。例如:脸部的一些特征能由矩形特征简单的描述,如:眼睛要比脸颊颜色要深,鼻梁两侧比鼻梁颜色要深,嘴巴比周围颜色要深等。...

View Article

Move Over Python: Entering a New Lever Age

Lever is a new open-source language. And, by new I mean version 0.8.0, which I translate as "will have some odd features/bugs but may run for hours at a time without crashing". It promises all the...

View Article


Zope in the Python 3 wonderland

A little tale Once upon the time there was thebig mighty Zope II. It was one of the leaders in the python land. It had mighty features like TTW (trough the web) developmentand its own object oriented...

View Article

使用Python玩转WMI

使用python玩转WMI 昨天来源:cnblogs 最近在网上搜索Python和WMI相关资料时,发现大部分文章都千篇一律,并且基本上只说了很基础的使用,并未深入说明如何使用WMI。本文打算更进一步,让我们使用Python玩转WMI。1 什么是WMI具体请看微软官网对WMI的介绍。这里简单说明下,WMI的全称是windows Management...

View Article


Selenium IDE and the Selenium Driver in Python (PyWeb-IL #56)

On 5 September 2016 I gave a talk and a live demonstration of Selenium IDE and the Selenium Driver of python at PyWeb-IL . These are some notes for the presentation. We talked about Selenium IDE the...

View Article

Image may be NSFW.
Clik here to view.

Backing up Ghost blogs with Python

Having an up to date backup of your blog is very important if you don't want to end up crying for your data in case something goes horribly, horribly wrong. Importing and exporting a Ghost blog's...

View Article

Manifold a new networking infrastructure for rtndf

While I have been using MQTT so far for rtndf , I always had in mind using my own infrastructure. I have been developing the concepts on and off since about 2003 and there’s a direct line from the...

View Article
Browsing all 9596 articles
Browse latest View live