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

Image may be NSFW.
Clik here to view.

2016 年 Python 开发者调查结果

2016 年 python 开发者调查结果 一点号数据玩家昨天 【伯乐在线导读】:JetBrains 公司在 2016 年组织了一次超过 1000 名Python开发者参与的调查,以洞察当前 Python 开发领域的真实面貌,发现最新趋势。本文摘编分享其中的一些调查成果。 JetBrains 的免责声明:...

View Article


Steps Towards Some Docker IPython Magic Draft Magic to Call a Contentmine Con...

I haven’t written any magics for Ipython before (and it probably shows!) but I started sketching out some magic for the Contentmine command-line container I described in Using Docker as a Personal...

View Article


Image may be NSFW.
Clik here to view.

Building A LoRa PHY With SDR

The Internet of Things is terrible when it’s your toaster. The real fun happens when you have hundreds or thousands of sensors sending data back to a base station every day. That requires low power,...

View Article

Image may be NSFW.
Clik here to view.

Invincea Labs: FireEye FLARE On 2016 Challenges Write Up (Pt. 1)

This fall, FireEye’s FLARE team hosted its third annual FLARE On Challenge . It was a capture-the-flag (CTF) challenge that encouraged security researchers, malware analysts and reverse engineers of...

View Article

Simple python to LaTeX parser

We demo a script that converts python numerical commands to LaTeX format. A notebook available on our GitHub page will take this and pretty print the result. Follow @efavdb Follow us on twitter for new...

View Article


使用Google的人脸检测API检测情绪-Python

Google 的VisionAPI提供了Label Detection、Face Detection和Logo Detection等等功能,本帖使用其中的Face Detection检测情绪(愤怒、高兴、伤心、惊喜)。(免费1000次请求/每月) 认证密钥的设置,参考文档: https://cloud.google.com/vision/docs/face-tutorial...

View Article

Writing Error Log in Python Flask Web Application

Writing error log is one of the crucial things when writing a web applications. It’s really helpful when trying to debug where things went wrong. In this tutorial, we’ll have a look at how to write...

View Article

0.搭建环境

python教程 操作系统:mac OSX 10.12 或 Ubuntu 16.04 编辑器: vim、 sublime、atom、PyCharm 要求会翻墙 操作系统 下载 Ubuntu http://www.ubuntu.org.cn/download/desktop 虚拟机 如果不想直接安装Ubuntu,建议使用虚拟机安装 virtualbox...

View Article


Python 描述符入门指北

很久都没写 Flask 代码相关了,想想也真是惭愧,然并卵,这次还是不写 Flask 相关,不服你来打我啊(就这么贱,有本事咬我啊 这次我来写一下 python 一个很重要的东西,即 Descriptor (描述符) 初识描述符 老规矩, Talk is cheap,Show me the code. 我们先来看看一段代码 classPerson(object): """"""...

View Article


python循环语句与其他编程语言不同之处

1、局部变量 for i in range(5): print i, print i, 运行结果: 0 1 2 3 4 4 i是for语句里面的局部变量。但在python里面,在同一方法体内,定义了一个局部变量,该变量的作用域是定义行开始至该方法体结束。 在其他编程语言,“print i”那一句是有误的,因为i没有定义 例1: def func(): a = 100 if a > 50: b...

View Article

Experienced Django: Custom Filters and Ordered Dicts

This week I ran into a minor problem that took a surprising amount of time to resolve. Getting a Django template to produce a dict in sorted order. While there were answers out there, none seemed to...

View Article

python实时处理log文件脚本

这个python脚本是用来对实时文件的内容监控,比如 Error 或者 time out...

View Article

Python无聊的总结

在公司无聊的时候看了前辈写的python代码,突然发现一个比较好玩的python表达式: 1 lambda x,y:x+y 咋一看,这个应该类似方法之类的,上网查了查,所以特此总结下 lambda:上代码 冒号前边的代表参数 冒号后边的代表表达式 返回值类型跟参数有关 1 >>> lambda x:x 2 <function <lambda> at...

View Article


Image may be NSFW.
Clik here to view.

高德 API+Python 解决租房问题 - 知乎专栏 「程序员实验室」

项目简介:编写python脚本爬取某租房网站的房源信息,利用高德的 js API 在地图上标出房源地点,划出距离工作地点1小时内可到达的范围,附上公交路径规划功能查看不同路径的用时。项目由 ekCit 发布在 实验楼 ,完整教程及在线练习地址: 高德API+Python解决租房问题 ,可以直接在教程中下载代码使用demo。 一、介绍 1. 背景...

View Article

Image may be NSFW.
Clik here to view.

漫谈Python的Namespace

漫谈python的Namespace 一点号编程派2小时前 本文约 7456 字,读完可能需要 19 分钟。 例1 php?url=0EzsHxK8XG" alt="漫谈Python的Namespace" />可以正常输出结果: 并且需要注意,在func2使用x稍微改一点:如下 例2: 输出就开始报错:...

View Article


Image may be NSFW.
Clik here to view.

Python内存问题:提示和技巧

python 打算删除大量涉及像C和C++语言那样的复杂内存管理。当对象离开范围,就会被自动垃圾收集器回收。然而,对于 由 Python 开发的 大型且长期运行的系统来说,内存管理是不容小觑的事情。 在这篇博客中,我将会分享关于减少 Python 内存消耗的方法和分析导致内存消耗/膨胀根源的问题。这些都是从实际操作中总结的经验,我们正在构建Datos IO 的 RecoverX...

View Article

Image may be NSFW.
Clik here to view.

Links as filesystem database

November 19, 2016 at 10:46 PM by Dr. Drang I returned to my office this past week after nearly two weeks away doing building inspections. I came back with nearly 7,000 photos―over 30 GB―that needed to...

View Article


Image may be NSFW.
Clik here to view.

初探接口测试框架--python系列6

点击标题下「蓝色微信名」可快速关注 坚持的是分享,搬运的是知识,图的是大家的进步,没有收费的培训,没有虚度的吹水,喜欢就关注、转发(免费帮助更多伙伴)等来交流,想了解的知识请留言,给你带来更多价值,是我们期待的方向,有更多兴趣的欢迎切磋,我们微信订阅号,联系方式如下: 更多书籍,敬请期待 背景说明...

View Article

python实用装饰器代码

python装饰器是一种可以用来对函数进行装饰的面向对象的方法。 当想要对一个已有的模块做一些“修饰工作”,所谓修饰工作就是想给现有的模块加上一些小装饰(一些小功能,这些小功能可能好多模块都会用到),但又不让这个小装饰(小功能)侵入到原有的模块中的代码里去。我们便可以写成一个装饰器,哪些函数需要哪些修饰功能就可以直接在函数前套用装饰器。 type_limit 用途 限制函数的参数和返回值的类型...

View Article

Announcing pydoc.io beta

Today we’re excited to announce our latest project: https://pydoc.io . This work was made possible by the MOSS Grant from Mozilla. Thanks to Mozilla for funding our time building this wonderful...

View Article
Browsing all 9596 articles
Browse latest View live