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

Image may be NSFW.
Clik here to view.

Introducing Shellfire!

Recently, I received some inspiration while working on my OSCP labs. Since a variety of automated tools are restricted from use during the actual exam, I wanted to avoid using them as much as possible....

View Article


Python内置函数(17)――divmod

英文文档: divmod ( a , b ) Take two (non complex) numbers as arguments and return a pair of numbers consisting of their quotient and remainder when using integer division. With mixed operand types, the...

View Article


Image may be NSFW.
Clik here to view.

大数据除了Hadoop,还有Scrapy

今天是2016年10月24日,1024,传说中的码农节 在此,祝各位码农节日快乐! 以上图片来自我司节日图片,均未经图中人物授权(:)) 这里是正文分隔线 1、先来扯扯大数据 互联网+概念的兴起,中国的创业者几乎把互联网+这趟车开进了所有领域,传统领域的商家人心惶惶,言必谈互联网+,仿佛不套点互联网的概念都不好意思宣传自家产品;而赶在这波潮流之前的正是燥热至今的“ 大数据 ”。...

View Article

Python for Kids: Bonus Project 1

python for Kids: Bonus Project1 October 24, 2016 Leave a comment In these posts I outline the contents of each project in my book Python For Kids For Dummies . If you have questions or comments about...

View Article

Image may be NSFW.
Clik here to view.

Power Of "We": PyCon CZ Keynote Speaker Ana Balica

Next week Ana Balica will give her first keynote, but she isn't nervous. At least, not yet. "I definitely will be before going on stage," she says. "That’s a natural response; you can’t help it."...

View Article


[Python]Python pip用国内镜像下载的办法

[python]Python pip用国内镜像下载的办法 http://blog.csdn.net/u010536377/article/details/50564185 异常信息: Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by...

View Article

Python的glob模块

=Start= 缘由: 使用glob模块进行文件查找和匹配。 参考解答: 比如我想匹配「20160918 20160930」这个区间中的内容,下面这种写法是不生效的: file_list = glob.glob('/opt/logs/sec.log-201609[18-30]') 因为 glob...

View Article

Image may be NSFW.
Clik here to view.

Conan at work

This is a guest post by Nils Brinkmann from the German company Rheinmetall Defence Electronics. You can reach him via LinkedIn if there are any questions regarding the article. Conan at work A few...

View Article


PyDev of the Week: Brianna Laugher

This week we welcome Brianna Laugher as our PyDev of the Week! Brianna is the organizer behind her local PyLadies chapter in Australia. She has a very interesting website that display her work. You...

View Article


Image may be NSFW.
Clik here to view.

Real Python: Introduction to Python Generators

Generators are functions that can be paused and resumed on the fly, returning an object that can be iterated over. Unlike lists, they are lazy and thus produce items one at a time and only when asked....

View Article

25个坎:劈荆斩刺之 Python 面试问答

python 是一种解释性语言:这意味着你的程序在执行之前不需要编译,而是由解释器在运行时处理。这个特点跟PERL,php很像。 Python是可交互的:这意味着你可以使用一个Python终端在写程序时和解释器直接交互。 Python是面向对象的:它支持面向对象风格和将代码封装成类的各种技术。...

View Article

Image may be NSFW.
Clik here to view.

django+nginx+xshell简易日志查询,接上<关于《rsyslog+mysql+loganalyzer搭建日志 ...

纠正一下之前在< 关于《rsyslog+mysql+loganalyzer搭建日志服务器<个人笔记>》的反思 >中说到的php+MySQL太慢,这里只是说我技术不好,没有技术可以修改这个开源的php日志程序罢了,当然,在做这个的时候,也是菜鸟一个,只是想自己尝试一下。高手可以直接跳过........

View Article

python里的比较少见的函数 map() partial()

map()是python的一个内建函数, 他能够通过函数来处理序列,比如,我们相关一个数组[0,1,2,3,4,5]所有的数字都+2 , 当然,我们可以这么做 old = [0,1,2,3,4,5] new = [] for itemin old: new.append(item+2) print new 有点小题大做的感觉,map就是解决这个问题的 old = [0,1,2,3,4,5] new...

View Article


Running OpenStack Compute APIs in nginx and uWSGI

In this article I will explain how run the OpenStack Compute (nova) APis behind nginx , instead of using the Eventlet builtin WSGI server. This is a setup we have been using at IFCA since long after...

View Article

Image may be NSFW.
Clik here to view.

Containerization and Deployment of Application on Atomic Host using Ansible...

This article describeshow to build Docker image and deploy containerized application on Atomic host (any Remote host) using Ansible Playbook. Building Docker image for an application and run...

View Article


python 之 'and' 和 'or'

两种逻辑运算符均为布尔逻辑运算,不返回一个布尔值,而是返回参与运算的两个变量中的一个。 一、python之and 在布尔上下文中,从左至右进行运算,如果两个变量表达式的运算结果都为真,则返回最后一个表达式的运算结果;如果某个变量表达式的运算结果为假,则返回第一个为假的表达式的运算结果。 1 #python 3.x 2 >>> a = 1-1 3 >>> b =...

View Article

Image may be NSFW.
Clik here to view.

Integrating Pandas, Django REST Framework and Bokeh

It’s no secret thatwe love Django REST Framework . We’ve written quite a few blog posts about it and it is our default framework for projects that require a web API. Another package that we use a lot...

View Article


Understanding Probabilistic Topic Models By Simulation

I gave a talk last week at Research Triangle Analysts on understanding probabilistic topic models (specificly LDA) by using python for simulation. Here's the description: Latent Dirichlet Allocation...

View Article

Python内置函数(20)――exec

英文文档: exec ( object [, globals [, locals ] ] ) This function supports dynamic execution of python code. object must be either a string or a code object. If it is a string, the string is parsed as a...

View Article

Image may be NSFW.
Clik here to view.

Microsoft adds Python to deep learning toolkit

Microsoft is adding python language support to its open source deep learning toolkit for developers. The kit, formerly known as Computational Network Toolkit (CNTK) and now called Microsoft Cognitive...

View Article
Browsing all 9596 articles
Browse latest View live