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

Python 入门:装饰器(decorator)、@functools.wraps、@staticmethod、@classmethod

注:该文是参考(或转载)于: http://www.liaoxuefeng.com/wiki/0014316089557264a6b348958f449949df42a6d3a2e542c000/0014318435599930270c0381a3b44db991cd6d858064ac0000#0 装饰器 1、要了解装饰器,就需要知道什么是高阶函数,高阶函数就是将函数作为参数赋值给另一个函数...

View Article


Image may be NSFW.
Clik here to view.

Build a blog with Django: Add post admin

Entering blog content via the command-line is certainlypossible but not very user-friendly. As Raymond Hettinger would prod you to shout, "There must be a better way." And, there is a better way. It's...

View Article


Image may be NSFW.
Clik here to view.

这个工具可以清除软件代码项目中的硬编码密钥

Truffle Hog可以在源代码存储库内找到20个字符或以上的访问令牌和密钥 安全研究人员开发了一种新工具,这一工具可以自动检测软件项目中已被硬编码的敏感访问密钥。 这种名为Truffle Hog( https://github.com/dxa4481/truffleHog...

View Article

Image may be NSFW.
Clik here to view.

Django 1.10中文文档-第一个应用Part2-模型和管理站点

本教程继续Part1。我们将设置数据库,创建您的第一个模型,并快速介绍Django的自动生成的管理网站。 数据库设置 现在,编辑 mysite/settings.py 。它是一个用模块级别变量表示Django配置的普通python模块。 Django的默认数据库是SQLite。如果你是数据库初学者,或者你只是想要试用一下Django,SQLite是最简单的选择。...

View Article

Image may be NSFW.
Clik here to view.

Celebrating Telegram 1.0 by using it as a network tunnel

Celebrating Telegram 1.0 by using it as a networktunnel Recently, I read a story about someone who tunneled IP traffic over QR codes ( here ). It got me thinking ― if it is that easy to write your own...

View Article


Python namedtuple使用实例

作者:杨冬 欢迎转载,也请保留这段声明。谢谢! 出处: https://andyyoung01.github.io/ 或 http://andyyoung01.16mb.com/...

View Article

Image may be NSFW.
Clik here to view.

PyTennessee: PyTN Profiles:Russ Anderson and FusionBox

Speaker Profile: Russ Anderson ( @realrealruss ) Russ Anderson is a Front-End Developer at SimplyAgree, and has been developing client-side apps for about 5 years. He’s worked with several...

View Article

Image may be NSFW.
Clik here to view.

Getting Started with Spark Streaming, Python, and Kafka

Last month I wrote aseries of articles in which I looked at the use of Spark for performing data transformation and manipulation. This was in the context of replatforming an existing Oracle-based ETL...

View Article


Image may be NSFW.
Clik here to view.

Sneak Preview: Deep Learning for Computer Vision with Python

Wow, the Kickstarter launch date of January 18th is approaching so fast! I still have a ton of work to do and I’m neck-deep in Kickstarter logistics, but I took a few minutes earlier today and recorded...

View Article


Understanding Regular expressions in Python

Regular expressions is a combination of characters representing a particular pattern. This pattern can be used to search for certain strings or words from larger string or textual data. When it comes...

View Article

Image may be NSFW.
Clik here to view.

Former employees sue Microsoft over claims they developed PTSD from years of...

There are some horrific videos and images floating around the internet, and those whose job it is to seek out and report this content need psychological support to help them cope. But two former...

View Article

Web application bruteforcer

Wfuzz is a tool designed to brutefore web applications, it’s very flexible, it supports: Recursion (when doing directory discovery) Post data bruteforcing Header bruteforcing Output to HTML (easy for...

View Article

Event sourcing in Django

Django comes with "batteries included" to make CRUD (create, read, update, delete) operations easy. It's nice that the CR part (create and read) of CRUD is so easy, but have you ever paused to think...

View Article


Image may be NSFW.
Clik here to view.

Python In Go - Introducing Grumpy

Google has developed an experimental python runtime for Go that translates Python code to Go, then runs the code in the Go runtime. The thinking behind this crazy sounding scheme is to find a way to...

View Article

Image may be NSFW.
Clik here to view.

New Code eBooks Available forSubscribers

Do you want to learn more about developing iOS apps with Swift? How about building web applications with Go, or functional programming in javascript? Our latest batch of eBooks will teach you all you...

View Article


Image may be NSFW.
Clik here to view.

Scikit-Learn Cheat Sheet: Python Machine Learning

This post was originally published here by Karlijn Willems | January 12, 2017 This post originally appeared on the DataCamp blog . Big thanks to Karlijn and all the fine folks at DataCamp for letting...

View Article

Image may be NSFW.
Clik here to view.

浅谈python多线程第二章

浅谈python多线程第二章 一点号python开源学院昨天 前面我们介绍了thread模块实现的多线程,但thread 模块级别低,并且不支持守护线程这个概念,当主线程退出时所有的子线程也被终止了。所以我们可以使用更高级别,功能更全面的threading模块来管理线程。 threading...

View Article


Image may be NSFW.
Clik here to view.

未来,Python和C Sharp才是最好的编程语言

未来,python和C Sharp才是最好的编程语言 一点号极客乐派2小时前...

View Article

How the time flies

Another year has passed, and so I look back at my goals and set new ones.For 2016, I had set less specific goals, but I had also set some goals I hadn't mentioned. Maybe because I was scared to put...

View Article

Python Lambda Proxy for API Gateway

This is a fun thing I experimented with in AWS, using python/Lambda to proxy requests from API Gateway. Suppose you have a service running in a VPC somewhere in AWS. If you don't want to create an EIP...

View Article
Browsing all 9596 articles
Browse latest View live