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

Image may be NSFW.
Clik here to view.

Announcing Change Management

What's ScienceOps? In this blogpost, we’ll spotlight a new set of new Change Management features we’ve added to our flagship product,ScienceOps. ScienceOps is a platform for deploying and managing...

View Article


Image may be NSFW.
Clik here to view.

SICP Python 描述 1.2 编程元素

1.2 编程元素 来源: 1.2 The Elements of Programming 译者:飞龙 协议: CC BY-NC-SA 4.0 编程语言是操作计算机来执行任务的手段,它也在我们组织关于过程的想法中,作为一种框架。程序用于在编程社群的成员之间交流这些想法。所以,程序必须为人类阅读而编写,并且仅仅碰巧可以让机器执行。...

View Article


[原]使用Python来分离或者直接抓取pcap抓包文件中的HTTP流

python是世界上最好的语言!它使用不可见的制表键作为其语法的一部分! Vim和Emacs的区别在于,它可以帮助乌干达的儿童... 不讨论哲学,不看第一印象,也没有KPI相逼,但是 Python真的做到了”你不用操心语言本身,只需要关注你自己的业务逻辑需求“! 我的需求比较简单,那就是:...

View Article

Typed Python with MyPy

Support for “type hints” was introduced in PEP 484 and implemented for the first time in python 3.5. As Python is not and will not at any time in the future be a proper statically typed language, the...

View Article

Flask Restful Small Demo

参考: http://www.pythondoc.com/flask-restful/first.html 什么是Rest Client-Server:服务器端与客户端分离。 Stateless(无状态):每次客户端请求必需包含完整的信息,换句话说,每一次请求都是独立的。 Cacheable(可缓存):服务器端必需指定哪些请求是可以缓存的。 Layered...

View Article


Django Weekly Issue 2

Worthy Read The Philosophy of Channels ( Django Channels ) async , channels I've not been as proactive as I could have been at communicating my reasoning and long-term vision for what Channels could...

View Article

DjangoWeekly Issue 3

Posted on Aug. 4, 2016 Worthy Read Djangocon Recap Day 1 and Day 2 Robert Roskam https://medium.com/@raiderrobert does a recap of Day 1 and 2 of just concluded Djangocon in US. We have shared quite a...

View Article

Nick Coghlan: What problem does it solve?

One of the more puzzling aspects of python for newcomers to the language is the stark usability differences between the standard library's urllib module and the popular (and well-recommended) third...

View Article


在Python中调用外部命令

=Start= 缘由: python中的 subprocess 模块允许你派生出新的进程,并通过pipe连接它们的标准输入/标准输出/标准出错,获取子进程的返回状态码。subprocess模块是被设计用来替代下面几个比较老的模块和函数的: os.system os.spawn* os.popen* popen2.* commands.* PEP 324 且 PEP324...

View Article


如何为 Python 添加远程调试能力而不修改系统代码

最近写了一些关于 python 远程调试的扯淡向博文,第一篇是「 远程调试你的 Python 代码 」,第二篇是「 使用 VS Code 远程调试 Python 程序 」。前些日子开了一个叫做「第八个手艺人」的微信公众号,本想混个原创,骗点零花钱,于是把这些文章首发在公众号上了。可惜微信始终不给我原创标记,微信文章的阅读量也上不去,我也就渐渐失去了玩公众号兴致。 后来看到耗子叔的新博文「...

View Article

Mozilla 向 PyPy 项目资助 20 万美元

Mozilla 官方博客 宣布 向 PyPy 项目资助20万美元,今年第二季度它向开源项目的资助总金额达到了58.5万美元。 Mozilla 的开源支持项目资助的开源项目包括 :对于促进 Mozilla 的使命有重要价值,比如隐私和开放Web相关的项目,在第二季度,Mozilla 向 Tor 、Live操作系统 Tails 、p2p分布式搜索引擎 PeARS 等项目 资助了38.5万美元...

View Article

Image may be NSFW.
Clik here to view.

十分钟入门Matplotlib

本文的原作者是 Jamal Moir,是 python 科学计算系列的第一篇文章,或许有人已经翻译过了,但我觉得我们 Python 翻译组的译文质量还是不错的。希望对喜欢 Python 的各位朋友有帮助。 本文译者 linkmyth,校对 EarlGrey@编程派。linkmyth 是同济大学的在读硕士,主攻web开发、机器学习等方向。 以下是原文正文: 数据的处理、分析和可视化已经成为...

View Article

[原]Python实现抓取访问特定URL的数据包

这篇文章紧接着《 使用python来分离或者直接抓取pcap抓包文件中的HTTP流 》展开,那篇文章是昨天写的,今天早上突然又想实现一个直接抓包的程序,于是天没亮就又爬起来了... 本文的代码以及前文的代码在github的地址: https://github.com/marywangran/Python-Http-cap-demux/tree/master...

View Article


Image may be NSFW.
Clik here to view.

使用 Python 进行科学计算:NumPy入门

本文由 python 翻译组 最新翻译出品,原作者为 Jamal Moir,译者为 cystone,并由编程派作者 EarlGrey 校对。这是使用 Python 进行科学计算的系列文章,上一篇可点此查看:Matplotlib 快速入门。 译者简介:cystone, 成都信息工程大学,计算机学院学生。擅长领域:图像处理,机器学习。 你可以用 NumPy 做很多有趣的事情。 NumPy...

View Article

Brett Cannon: Network protocols, sans I/O

Back in February I started taking a serious look at asynchronous I/O thanks to async / await . One of the things that led to me to looking into this area was when I couldn't find an HTTP/1.1 library...

View Article


Image may be NSFW.
Clik here to view.

SICP Python 描述 1.3 定义新的函数

1.3 定义新的函数 来源: 1.3 Defining New Functions 译者:飞龙 协议: CC BY-NC-SA 4.0 我们已经在 python 中认识了一些在任何强大的编程语言中都会出现的元素: 数值是内建数据,算数运算是函数。 嵌套函数提供了组合操作的手段。 名称到值的绑定提供了有限的抽象手段。...

View Article

Python中Communicate与Wait函数的区别

作者:糖果 测试的内容是将Timer的使用和Popen的使用混合在一起,测试当wait()和communicate()被调用时,是否会阻塞主进程的Timer。 找到Timer在python2.7里的源码位置: # The timer class was contributed by Itamar Shtull-Trauring def Timer(*args, **kwargs):...

View Article


PyQQbot ―― Python 实现的 QQ 机器人

一、介绍 QQBot 是一个用 python 实现的、基于腾讯 SmartQQ 协议的简单 QQ 机器人,可运行在 linux 和 windows 平台下,所有代码均集成在一个 [qqbot.py][code] 文件中,代码量仅 400 多行(不包括注释)。程序采用单线程的方式运行,且尽可能的减少了网络和登录错误(特别是所谓的 103 error )发生的概率。 [code]:...

View Article

Python(九)Tornado web 框架 其实很简单、深度应用

一、简介 Tornado 是 FriendFeed 使用的可扩展的非阻塞式 web 服务器及其相关工具的开源版本。这个 Web 框架看起来有些像 web.py 或者 Google 的 webapp ,不过为了能有效利用非阻塞式服务器环境,这个 Web 框架还包含了一些相关有用工具及优化。 Tornado 和现在的主流 Web 服务器框架(包括大多数 python...

View Article

Image may be NSFW.
Clik here to view.

恭喜你获得了这本Python入门书

恭喜你获得了这本python入门书 一点号编程派昨天 没想到上周五的活动得到这么多热爱 Python 的朋友积极参与,而且有很多人在留言里也分享了自己学习 Python 的心得和感悟,再次感谢大家对编程派的厚爱和支持! 按照活动规则,截止本期推送为止留言获点赞数前五的朋友将获得赠书,这几位幸运儿如以下截图所示: php?url=0E7DvWGxtB" alt="恭喜你获得了这本Python入门书"...

View Article
Browsing all 9596 articles
Browse latest View live