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

python虚拟环境virualenv

virtualenv 是一个创建隔绝的python环境的工具。virtualenv创建一个包含所有必要的可执行文件的文件夹,用来使用Python工程所需的包。 一、安装virtualenv #install pip on macbrew install pythoncurl https://bootstrap.pypa.io/ez_setup.py -o - | sudo pythonsudo...

View Article


Image may be NSFW.
Clik here to view.

Mark E. Phillips: Removing leading or trailing white rows from images

At the library we are working on a project to digitize television news scripts fromKXAS, the NBC affiliate from Fort Worth. These scripts were read on the air during the broadcast and are a great entry...

View Article


Image may be NSFW.
Clik here to view.

Semantic Search Implementation in Ropper

I started implementing a new feature called semantic search in ropper several month ago. Due to lack of time it is not finished yet. My lovely Kids, a job and my studies are comsuming a lot of time....

View Article

TurboGears入门

近期找到了1个新的工作的地方,在这里同事都是90后还算比较好说话,不过这里的一些技术就不多说了,习惯使用python版本2.7的我竟然要写3.5的代码,说起来也是心累,坑多。 另外,在这里采用的Web框架竟然是TurboGears2,1个不怎么好用,且知名度也咋地的框架。 安装与运行...

View Article

从python到java之开始设计模式

最近要写一个系列的博客,总结设计模式。 首先我想展示我对设计模式的理解,它用来解决一个什么样的问题,同时它有哪些不足,还有我想表达一种思路就是作为支持面向对象的语言,是如何实现设计模式的。最后我想从python和java这两种语言比较设计模式的实现方式来说明这两种语言的特点。...

View Article


Image may be NSFW.
Clik here to view.

How to use Python Warnings Framework?

Warnings are issued when future language changes might break existing code in a future python release. Warnings are ideally used in the places where the condition or usage doesn’t raise any exception...

View Article

Image may be NSFW.
Clik here to view.

Use Django or end up building a Django

Django makes it easier to build better Web apps more quickly and with lesscode. No matter if you’re beginner or Professional web developer, use Django python web framework for your web project...

View Article

Image may be NSFW.
Clik here to view.

软件周刊 | 不服不行,这年头发版本比的都是速度

要的就是速度,Angular 4.0.0 beta0 发布 由于想将核心包版本对齐,加上语义化版本控制,Angular 2 之后将迎来 Angular 4。 更新内容: fix(编译器) :修复 compiler_host 中的合并错误 common: add a titlecase pipe common: export NgLocaleLocalization compiler: add id...

View Article


python-数据类型

标识符 python的标识符:任意长度的非空字符序列,包括一个引导字符,0个或者多个后续字符. - 引导字符:任何Unicode编码的字符,包括ASCII字母(小写/大写字母),下划线(_),或者其他大多数非英文字母. - 后续字符:任意引导字符,含数字. -标识符不可以与关键字同名 - 标识符去分大小写 - 避免在标识符开头和结尾使用__,因为这是python内部定义特殊方法与变量的做法....

View Article


Image may be NSFW.
Clik here to view.

Python 3 Utilities for Parsing Intel Microcode

A recent issue on a linux platform with an Intel CPU prompted me to check to see if there was a microcode patch available from Intel to fix the issue. This blog post provides the source code for some...

View Article

解析: Python 实现终端实时获取股票价格

GitHub 里老早之前就 Star 了 felixglow/Stock 这个项目,原作者 felixglow 。昨天晚上又想起这个来,于是今儿早上就拿出源码来看――我对其中相当多的部分都不熟悉,有些还是第一次了解。在这里将我的理解记录下来,其中的错谬之处,还望各位大神指正。 实现思路 在 README ,作者这样写道: 通过调用新浪股票API,实时查询股票价格...

View Article

Open Source Text Processing Project: segtok

segtok: sentence segmentation and word tokenization tools Project Website: http://fnl.es/segtok-a-segmentation-and-tokenization-library.html Github Link: https://github.com/fnl/segtok Description A...

View Article

Image may be NSFW.
Clik here to view.

机器学习年度 20 大开源项目花落谁家?(Python 版)

如今,开源已经成为创新与技术发展的核心。在本文中,雷锋网将介绍 2016 python 前20大机器学习开源项目。 去年 KDnuggets 评选了前 20 大机器学习开源项目 (Python版),今年的评选结果与去年相比,名单中出现了一些新的面孔,有13个新开源项目入围了这个名单。作者 Prasad Pore 将具体介绍这些开源项目,雷锋网编译,未经许可不得转载。 第一名:Scikit-learn...

View Article


Django外键赋值

classArticle(models.Model): title = models.CharField(max_length=1024, default='') ... def__str__(self): return 'Article pk:%d %s' % (self.pk, self.title[:30]) classArticleContent(models.Model): article...

View Article

python OptionParser模块使用

OptionParser是python中用来处理命令行的模块,在我们使用python进行流程化开发中必要的工具 Optparse,它功能强大,而且易于使用,可以方便地生成标准的、符合Unix/Posix 规范的命令行说明 事例代码 from optparse import OptionParser parse = OptionParser() parse.add_option("-l",...

View Article


Image may be NSFW.
Clik here to view.

Using Blender and Python to 3D print a dress

Using Blender and python to 3D print a dress Posted 19 Dec 2016 Richard Colburn Feed up Image credits : westonhighschool libraryon Flickr , CC BY-SA 2.0 The opening ceremony at the 2016 Paralympic...

View Article

2017: The Year of Golang

2017: The Year of Golang Since I started working with python a few years ago my work...or productivity has greatly improved. Improved in a way that was not entirely possible when I used to work...

View Article


Image may be NSFW.
Clik here to view.

Unaffordable Country In Apache Spark

Back in September last year, the Guardian published a fantastic visualisation looking at house price affordability in the United Kingdom. They took the Prices Paid data from the Land Registry and...

View Article

Compressing and Extracting Files inPython

If you have been using computers for some time, you have probably come across files with the .zip extension. They are special files that can hold thecompressed content of many other files, folders,...

View Article

Image may be NSFW.
Clik here to view.

Chris Moffitt: Building a Financial Model with Pandas - Version2

Introduction In mylast article, I discussed building a financial model in pandas that could be used for multiple amortization scenarios. Unfortunately, I realized that I made a mistake in that...

View Article
Browsing all 9596 articles
Browse latest View live