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

Image may be NSFW.
Clik here to view.

版本更新 git-webhook v0.0.6 发布到 pypi

一个使用 python Flask + SQLAchemy + Celery + Redis + React 开发的用于迅速搭建并使用 WebHook 进行自动化部署和运维系统,支持:Github / GitLab / GitOSC。 git-webhook v0.0.6 发布了。目前只需要使用 pip install git-webhook 即可安装获得最新的版本。 具体做了以下更新和 bug...

View Article


Image may be NSFW.
Clik here to view.

This may be the most unfortunate tweet ever sent

Technically Incorrect offers a slightly twisted take on the tech that's taken over our lives. Ah. Oh. Photo by screenshot by Chris Matyszczyk/CNET There was no laughter here. Truly there wasn't....

View Article


Image may be NSFW.
Clik here to view.

python 爬虫更新日期维度表中的节假日

我以前的一篇文章介绍了怎么初始化数据仓库中的日期维度表 https://ask.hellobi.com/blog/bailin0007/4773 但是有个缺陷就是里面有两个字段:节假日名称和是否放假是空着的。 这就带来了很多不便,比如用户想对比最近5年每年七夕和情人节的销售情况,或者统计全部法定假日的信息。难道还要去看哪年哪些日子是法定假日?...

View Article

Sentry 8.11.0 发布,Python 实时日志平台

Sentry 8.11.0 发布了。Sentry 是一个实时的事件日志和聚合平台,基于Django构建。 Sentry 可以帮助你将 python 程序的所有 exception 自动记录下来,然后在一个好用的 UI 上呈现和搜索。处理 exception 是每个程序的必要部分,所以 Sentry 也几乎可以说是所有项目的必备组件。 该版本改进如下: Ignore a null Origin...

View Article

Image may be NSFW.
Clik here to view.

教你阅读 Python 开源项目代码

知乎上有不少人问和关注阅读开源项目代码这个问题,比如「初学 python,有哪些 Pythonic 的源码推荐阅读?」、「github中适合新人阅读的Python项目有哪些?」、「如何去阅读并学习一些优秀的开源框架的源码?」等。本文将从推荐可阅读的Python项目和如何阅读者2个方面聊聊这个话题。 阅读Python开源项目代码主要有如下三个原因:...

View Article


Image may be NSFW.
Clik here to view.

Pull a Car From a Ditch With the Super-Strength of Physics

My recent post ontightropes reminded me of a great “hack.” Here’s the situation. Your car is stuck in the mud, so you grab a rope and tie it to the front of the car and then the other end to a very...

View Article

Option Calculus - 012 - Pure, Functional, Financial, Python Katas

We introduced the only two fundamental securities in finance over the last two katas, and now we are going to again tell you we were not being 100% truthful. There is only one fundamental type of...

View Article

Image may be NSFW.
Clik here to view.

Sentiment Analysis on News Articles using Python

Sentiment Analysis on News Articles using python by Milind Paradkar In our previous post onsentiment analysiswe briefly explained sentiment analysis within the context of trading, and also provided a...

View Article


Django restfull framework 使用笔记 -- 踩坑记录

在系统与外部系统以http接口的方式做交互时,发现我们使用drf(django restfreamwork)框架实现的接口数据多次调用获取到的数据值不一致。 首先,我们想到的是缓存,但是经过排查,系统中并没有使用外部的缓存。那么既有可能是drf 内部有缓存机制,于是去官方文档查阅。最后找到了这样的描述: get_queryset(self) Returns the queryset that...

View Article


Let’s Stop Bashing C

This blog post is a quick reply to Let’s Stop Copying C . To begin with, I agree with most of the things Eevee wrote. However, I think she went a little too far and described some of her personal...

View Article

Image may be NSFW.
Clik here to view.

你并不熟悉的 Python 正则高级用法

你并不熟悉的 python 正则高级用法 一点号前端交流7小时前 学习正则的第一个教程应该去看<正则表达式30分钟入门教程>(http://deerchao.net/tutorials/regex/regex.htm), 学会里面的内容就足够满足大部分的工作需要了。而对于Python来说,就要学习模块re的使用方法。文本将展示一些大家都应该掌握的高级技巧。 编译正则对象...

View Article

Updating in favour of two-round delayed runoffs

I’m not a huge fan of IRV (Also known as AV or Hare voting), despite its status as being probably the most widely used single-winner ranked voting system in practice. It seems unclear whether it’s...

View Article

Writing Go assembly functions with PeachPy

What is PeachPy PeachPy is a python-based framework for writing modules in assembly. It automates away some of the details and allows you to use Python to generate repetitive assembly code sequences....

View Article


Image may be NSFW.
Clik here to view.

Python实现网页解析翻译

先不说主流的几款提供翻译接口的产品在翻译的水准上如何,就HTML标签识别来说,度娘恐怕没有谷歌和必应做的好。 0x01 需求 最近需要写程序翻译一批英文网页,要求翻译后的网页排版样式基本不变。经过前期测试发现,Google和Bing的在线翻译可以直接识别出HTML的标签: 类似这样,看起来很舒心~~: 换做度娘,Oh~:...

View Article

Image may be NSFW.
Clik here to view.

Rhodium Open Source Python Library for (MO)RDM

Last year Dave Hadkaintroduced OpenMORDM( Hadka et al., 2015 ), an open source R package for Multi-Objective Robust Decision Making ( Kasprzyk et al., 2013 ). If you liked the capabilities of OpenMORM...

View Article


Image may be NSFW.
Clik here to view.

最新编程语言排行榜出炉,看看你学的语言能排第几?

第一个现代意义上的高级语言FORTRAN于1954年提出,其编译器完成于1957年,距1946年第一台电子计算机ENIAC诞生已经11年。从提出到实现花了3年时间,可见第一个开发编译器的不易。在FORTRAN编译器实现之前,许多科学家甚至认为高级语言编译器是不可能实现的。自从高级语言诞生以来,高级语言不断涌现,不断超越,有的是后起之秀前途光明,有的逐步被淘汰,还有的经过多年的发展,不仅没被淘汰反而更...

View Article

Image may be NSFW.
Clik here to view.

x lines of Python: AVO plot

Amplitude vs offset (or, more properly, angle) analysis is a core component of quantitative interpretation.The AVO method is based on the fact that the reflectivity of a geological interface does not...

View Article


Evaluating filter frequency response

A question that pops up for many DSP-ers working with IIR and FIR filters, I think, is how to look at a filter’s frequency and phase response. For many, maybe they’ve calculated filter coefficients...

View Article

Image may be NSFW.
Clik here to view.

Pandas Tutorial: Data analysis with Python: Part 2

We covered a lot of ground in Part 1 of our pandas tutorial . We went from the basics of pandas DataFrames to indexing and computations. If you’re still not confident with Pandas, you might want to...

View Article

Vasudev Ram: Simple directory lister with multiple wildcard arguments

By Vasudev Ram $ python file_glob.py f[!2-5]*xt I was browsing the Python standard library (got to use those batteries! ) and thought of writing this simple utility - a command-line directory lister...

View Article
Browsing all 9596 articles
Browse latest View live