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

Image may be NSFW.
Clik here to view.

关于Python的几点思考

简介:一直以来,python的性能是大家诟病最多的地方,不少最初采用Python的项目甚至开始迁移到其他语言,Duolingo就是其中一例。而整个Python社区最成功的框架莫过于PyPy,但Python使用大户Dropbox并没有采用,相反,他们另起炉灶写了一个Pyston。关于Python几个老生常谈的话题,Kevin Modzelewski有话要说。...

View Article


IDL 8.6: Licensing and updating

Licensing has been the most controversial change in IDL 8.6. The release notes say: IDL licensing is now managed through a 3rd-party solution from Flexera software. You obtain the license through a...

View Article


Image may be NSFW.
Clik here to view.

如何从新闻中识别骗子们的小套路

*原创作者:西角边的MR,本文属CodeSec原创奖励计划,未经许可禁止转载 电信诈骗猖獗盛行,成为国家的重点打击对象,但是我们身边亲朋好友被骗的悲剧还在屡屡发生。小作者思考也许我们可以从新闻中提取电信诈骗的特征信息,为家里的长辈亲人提个醒,做到防患于为然。...

View Article

Python变量和数据类型

python中数据类型 计算机顾名思义就是可以做数学计算的机器,因此,计算机程序理所当然地可以处理各种数值。但是,计算机能处理的远不止数值,还可以处理文本、图形、音频、视频、网页等各种各样的数据,不同的数据,需要定义不同的数据类型。在Python中,能够直接处理的数据类型有以下几种: 一、整数...

View Article

Image may be NSFW.
Clik here to view.

50 行代码实现微信股价提示

昨晚上想做一个股价提示,一旦指定的股价到达预警价格就向自己的微信发一条信息,于是早上就把这东西搞定了。但也没想到原来只需要 50 行代码就搞定了。 据此操作的一切交易后果与本人无关,但如果这些对你有帮助,不妨通过 微信 或 支付宝 对我捐助。 实现功能 设置单支股票价格微信提示 测试版脚本支持定时开启,但尚不稳定 微信端截图: Terminal 截图: 起因...

View Article


开发中的命名规范之Python

文章来源 http://www.cnblogs.com/wangcp-2014/p/4608265.html 文件名 全小写,可使用下划线 包 应该是简短的、小写的名字。如果下划线可以改善可读性可以加入。如mypackage。 模块 与包的规范同。如mymodule。 类 总是使用首字母大写单词串。如MyClass。内部类可以使用额外的前导下划线。 函数&方法...

View Article

Image may be NSFW.
Clik here to view.

Go 之旅一: 包、变量和函数

学习 A Tour of Go (中文参考 Go 之旅中文 ) 整理的笔记。介绍包、变量和函数的基本概念和使用。 包、变量和函数 1. package $GOPATH/src/go_note/gotour/basics/package/package.go 源码如下: /** * packages 的相关概念 */ package main // 指定包名 import ( "fmt"// 包名是...

View Article

Image may be NSFW.
Clik here to view.

如何使用深度学习框架检索女Q*资源

情人节刚过,单身狗也想飙一把车。在这篇技术博客(资源的真义)中,日本开发者使用深度学习框架实现了根据图片检索女优的功能。 开发环境: PC: MacBook Air CPU: 1.4 GHz Intel Core i5 内存: 4GB 普通的MacBook Air就可以实现这一程序,但是学习速度缓慢,由内存不足导致的各种Crash让开发工作变得非常痛苦。 0. 简单的流程 (1)收集各女优的图片...

View Article


Image may be NSFW.
Clik here to view.

Advanced analytics with Python and Tableau 10.1 integration

After introducing R capabilities in Tableau 8.1, the new Tableau 10.1 now comes also with support for python. This is a great news especially for data scientists, who use the reports to visualize...

View Article


Talk Python to Me: #99 Morepath: Super Powered Python Web Framework

One of the areas where python truly shines is on the web. Many well known websites like YouTube, Pintrest, and Spotify are powered by Python. In the mid 2000's, a number of powerful and popular...

View Article

Image may be NSFW.
Clik here to view.

Generate random data for your applications with Elizabeth

Generate random data for your applications with Elizabeth Posted 15 Feb 2017 D Ruth Bavousett Feed 1 up Image by : Opensource.com Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean...

View Article

Image may be NSFW.
Clik here to view.

Distributed tracing at Pinterest with new open source tools

The Pinterest backend consists of hundreds of microservices deployed across tens of thousands of machines. A simple request to the Pinterest home feed can make hundreds of network calls to dozens of...

View Article

Django的Middleware中间件

我们在Django Book中看到一张图很好,在正常的请求和响应阶段,Middleware充当的角色见下图 其实说白了,中间件就是古代皇宫传话,传旨的公公(这里我们假设是宦官专政的朝代,皇帝听什么说什么都通过公公传达). 传话(request)...

View Article


Image may be NSFW.
Clik here to view.

使用Python脚本检验文件系统数据完整性

今天是又一年度的2月14日西方情人节,先说点与情人节有关的,但这绝不是狗粮,可以放心阅读。 讲真,如果你是单身狗,没事时还是要静下心学习以提升自己;如果你不是单身狗,没事时除了上一条还要多陪陪媳妇和家人。因为没有什么是比亲人和提升自己更重要的事了!无论是提升自己还是陪伴家人,不要浮于表面,就像今天过情人节一样,向对方表达爱并不是只有这一天和那几天,而是男女双方长久的坚持和包容。...

View Article

What’s New in Python: Asynchronous Comprehensions / Generators

python 3.6added the ability to create Asynchronous Comprehensions and Asynchronous Generators. You can read about asynchronous comprehension in PEP 530 while the asynchronous generators are described...

View Article


Image may be NSFW.
Clik here to view.

PostgreSQL text search in Django

ByMatt Layman on February 14, 2017 College Conductor gives educational consultants and counselors access to the information of thousands of U.S. colleges and universities. The most natural method to...

View Article

Image may be NSFW.
Clik here to view.

Using Uber's Pyflame and Logs to Tackle Scaling Issues

Here I was again, looking at my screen in complete disbelief. This time, it was different though. My distributed web crawler seemed to be slowing down over time. Adding more nodes only had a temporary...

View Article


Image may be NSFW.
Clik here to view.

CPython sprint, september 2016

I was invited at my first Cpython sprint in September! Five days, September 5-9, at Instagram office in California, USA. The sprint was sponsored by Instagram, Microsoft, and the PSF. First little...

View Article

Image may be NSFW.
Clik here to view.

Time Series Forecast Case Study with Python: Annual Water Usage in Baltimore

Time series forecasting is a process, and the only way to get good forecasts is to practice this process. In this tutorial, you will discover how to forecast the annual water usage in Baltimore with...

View Article

Geekmarks: An Open-Source, API-Driven, Geeky Bookmarking Service

In short, I want my bookmarking service: To be very quick to use; To provide a way to organize my bookmarks in a powerful way. I tried a lot of existing bookmarking services, and I wasn't satisfied by...

View Article
Browsing all 9596 articles
Browse latest View live