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

Image may be NSFW.
Clik here to view.

Higher-Order Functions

Higher-order functions are the pendant to First-Class Functions because higher-order functions can take functions as argument or return them as result. Higher-order functions The three classics: map,...

View Article


Image may be NSFW.
Clik here to view.

Building Decision Tree Algorithm in Python with scikit learn

Decision tree algorithm in python Decision Tree Algorithm implementation with scikit learn One of the cutest and lovable supervised algorithms is Decision Tree Algorithm. It can be used for both the...

View Article


Image may be NSFW.
Clik here to view.

Python 为何能坐稳 AI 时代头牌语言

谁会成为AI 和大数据时代的第一开发语言?这本已是一个不需要争论的问题。如果说三年前,Matlab、Scala、R、Java 和 python还各有机会,局面尚且不清楚,那么三年之后,趋势已经非常明确了,特别是前两天 Facebook 开源了 PyTorch 之后,Python 作为 AI 时代头牌语言的位置基本确立,未来的悬念仅仅是谁能坐稳第二把交椅。...

View Article

Pyston 0.6.1 发布,高性能 Python JIT

Pyston 0.6.1 发布了。Pyston 是一个 Dropbox 推出的新的基于 JIT 的 python 2.7 的实现。Pyston 解析 Python 代码并转换到 LLVM 的 intermediate representation (IR)。然后 IR 通过 LLVM 优化器处理后在 LLVM JIT 引擎上执行,其结果是机器码的执行。 该版本在 0.6...

View Article

Image may be NSFW.
Clik here to view.

Million requests per second with Python

Is it possible? Probably not until recently. Many large companies have been investigating migrating to other programming languages to boost their operation performance and save on server prices but...

View Article


Image may be NSFW.
Clik here to view.

Dropbox pulls the plug on faster Python project

Pyston , Dropbox's project to create a faster python runtime similar to just-in-time compiling systems like PyPy, will no longer be sponsored by Dropbox after its latest release. Version 0.6.1 brings...

View Article

Image may be NSFW.
Clik here to view.

Pythonnet brings Python to Microsoft .Net

The pythonnet package gives Python developers interoperability between Microsoft's .Net Common Language Runtime and the CPython implementation of the language. Also known as Python for .Net, the...

View Article

Image may be NSFW.
Clik here to view.

如何抓取汽车之家的车型库

实际上,关于「如何抓取汽车之家的车型库」,我已经在「 使用 Mitmproxy 分析接口 」一文中给出了方法,不过那篇文章里讲的是利用 API 接口来抓取数据,一般来说,因为接口不会频繁改动,相对 WEB 页面而言更稳定,所以通常这是数据抓取的最佳选择,不过利用 API 接口来抓取数据有一些缺点,比如有的数据没有 API 接口,亦可能虽然有 API 接口,但是数据使用了加密格式,此时只能通过...

View Article


Image may be NSFW.
Clik here to view.

Import Python: The Hacker's Guide To Python - Book Review and Interview With...

Book Review First heard about The Hacker’s Guide To python at Pycon - 2014. I brought the ebook version and converted it to my favourite format .dead_tree and read it. Hacker's Guide To Python #python...

View Article


Caktus Consulting Group: Caktus at PyCaribbean

For the first time, Caktus will be gold sponsors at PyCaribbean February 18-19th in Bayamon, Puerto Rico. We’re pleased to announce two speakers from our team. Erin Mullaney, Django developer, will...

View Article

2016年总结

16年匆匆而过,17年也已开始一个多月,趁着过年空闲下来,回想一下去年的点滴,也希望今年能过的更充实。 16年有四件大事,上半年的毕设,年中的本科毕业,8月全面接管实验室服务器,研一一学期匆忙而过。 毕设做的是利用parameter server 的思想做分布式矩阵分解。一开始异想天开,想着直接用python 实现整套方案,利用mpi4py 库完成通信。矩阵分解算法直接照搬之《Distributed...

View Article

Image may be NSFW.
Clik here to view.

Python Excel Tutorial: The Definitive Guide

Originally published at https://www.datacamp.com/community/tutorials/python-excel-tutorial You will probably already know that Excel is a spreadsheet application developed by Microsoft. You can use...

View Article

Python 3 与 Javascript escape 传输确保数据正确方法和中文乱码解决方案

前几天用python的Bottle框架写个小web程序,在进行Ajax交互之时,前端则先用 JSON.stringify 来将类序列化,然后用escape() 函数将其编码,确保传输正确。 再基本上配合上Jquery的$.ajax应该就可以了,可能是经验不足,即使编码之后的数据依然在 Python 中难以处理。 后来慢慢思考出一种方式,在网上也发现了类似的方式,于是将其实现。 基本思路如下:...

View Article


PythonFOSDEM 2017 - Call for Volunteers

Introduction The python Community will be represented during FOSDEM 2017 with the Python Devrooms. This year, we will have two devrooms, the first one for 150 people on Saturday and the second one for...

View Article

Invalid version number error with Python

Problem I tried to import a python package that I had installed from source. The import failed with this error: File "/usr/lib/python2.7/distutils/version.py", line 40, in __init__ self.parse(vstring)...

View Article


Image may be NSFW.
Clik here to view.

新博客,新的开始

新年新气象,给大家拜个晚年。 有心的同学可能已经注意到了,新年假期这几天,我更换了自己用了4年多的博客,从后端到前端大换血,变成了现在这个样子。新博客前几天就已经竣工了,这几天一直在做一些功能上的改进,让它真正成为一个功能完善而且强大的博客系统。 我将其取名为Talkbook,意为“一本娓娓道来的书”。...

View Article

Personal thoughts about Pyston’s outcome

I try to not read HN/Reddit too much about Pyston, since while there are certainly some smart and reasonable people on there, there also seem to be quite a few people with axes to grind (*cough cough*...

View Article


Causal inference in python

Causality This package contains tools for causal analysis using observational (rather than experimental) datasets. Installation Assuming you have pip installed, just run pip install causality Causal...

View Article

Image may be NSFW.
Clik here to view.

pip changing from pep8 to pycodestyle

I recently updated one of the packages in Atom that was called linter-pep8 to version 2.0 which was renamed to linter-pycodestyle . This is because PEP8 the package was renamed to pycodestyle to...

View Article

Sending SMS messages with Amazon SNS and Python

There are many services out there that will let you programmatically send SMS messages. One of the more popular is Twilio , and they have a great API and a python client that's easy to use. There's an...

View Article
Browsing all 9596 articles
Browse latest View live