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

Image may be NSFW.
Clik here to view.

s2-045漏洞批量检测工具

今天晚上看老铁们在群里就这个st2-045漏洞讨论得火热,个人不太喜欢日站,本来想直接写个批量挂马的东西,但是想想还是算了,如果你有兴趣,改改也很容易,反正不关我的事 测试图 依赖包的安装 pip install requests pip install beautifulsoup 对于此脚本所放置文件夹下必须有keyword.txt用来存放一行行的关键词...

View Article


Python 3中字符串可以被改变吗?

python 3中字符串可以被改变吗? 字符串有改变这个方法的:replace,比如: a = 'lkjhgfdsa' a.replace('l','123') '123kjhgfdsa' #返回结果 从上面这个例子可以看出,str也是可以被改变的。但是!!! 这种改变并不是真的把原本的字符串给改变了,而是相当于创建了一个新的字符串: >>> a = 'lkjhgfdsa'...

View Article


Image may be NSFW.
Clik here to view.

Released: Python support in Visual Studio 2017

Today is launch day for Visual Studio 2017, and you can see all the info and join the live event at launch.visualstudio.com . But over in this corner of our world, we are announcing something special....

View Article

Image may be NSFW.
Clik here to view.

12-factor Django apps

ByMatt Layman on March 7, 2017 Deployment of web applications has many considerations. Most web applications must handle sensitive data. To handle increased traffic, the app should be scalable. If a...

View Article

Image may be NSFW.
Clik here to view.

Automatic Red Eye Remover using OpenCV (C++ / Python)

In this tutorial, we will learn how to remove red eyes from a photo completely automatically. Just thinking about this problem of red-eye removal brings back memories from my childhood. I grew up in...

View Article


Image may be NSFW.
Clik here to view.

Google ignites Python library for command lines

With its python Fire library, Google is offering Python developers a mechanism to easily generate command-line interfaces. Newly available via open source, Python Fire turns code into a CLI without...

View Article

Tomasz Früboes: Modify MS Word documents with python

A couple of months ago my wife completed and defended her Ph.D. thesis in archaeology. To our surprise she received a proposition to turn it into a book. Probably I don’t need to write how excited we...

View Article

Image may be NSFW.
Clik here to view.

如何利用Python绘制学术论文图表

论文中图表形式多样,常用的处理工具有excel、MATLAB以及python等,excel自处理的方法有两个缺陷:1.当数据较多时,容易出现excel“翻白眼”的现象;2.需要使用subplot功能或批量处理时,使用MATLAB或Python更为方便;3.excel处理的图在美观程度上较论文图表标准有一定的距离。对比MATLAB以及Python的plot功能,从图的美观角度出发,Python稍占优势...

View Article


Image may be NSFW.
Clik here to view.

Webinar: “Why Postgres Should Be Your Document Database” with Jim Fulton,...

python and database developers are increasingly interested in document storage and PostgreSQL has an increasingly-attractive story. Come explore Postgres as a document database in our free webinar:...

View Article


What the FFI?!

What follows are the slides from a talk I gave at the PDXRust meetup . This presentation was very live demo example heavy, and I’ve replaced the demos with links to specific tags in the example code’s...

View Article

Image may be NSFW.
Clik here to view.

Quickly and Easily Way to Create a Django Application: BeDjango Starter

BeDjango starter In the following post we will talk about the starter we have released from BeDjango . The decisions we have made, the features we have decided to add and some aspects that we would...

View Article

离线数据任务中的惰性求值语法设计

概要: 对惰性求值在离线数据任务中的好处做了定义和如何实现的分析,并从有向无环图中偷师如何解耦复杂计算中的数据逻辑依赖,然后分别从 python, Java, Scala, Ruby 这四个语言如何表达惰性求值中去考察 这几个编程语言的特点,最后做了表格对比分析和总结。 在处理离线数据相关任务时,项目的主要目的是为了解决某个数据需求,然而其本质也是一个...

View Article

Image may be NSFW.
Clik here to view.

实战:基于Python构建运维自动化平台

导语: 今天与大家一起探讨如何基于python构建一个可扩展的运维自动化平台,也希望能与大家一起交流,共同成长。 此次分享将通过介绍OMServer、OManager具备的功能、架构设计、模块定制、安全审计、C/S结构的实现等几个方面的内容来展开。 为什么选择Python? 默认安装且跨平台 可读性好且开发效率高 丰富的第三方库(开发框架、各类API、科学计算、GUI等)...

View Article


Image may be NSFW.
Clik here to view.

Nicola Iarocci: Python support in Visual Studio 2017 or the lack thereof

So yesterday Visual Studio 2017 was released. Big news. Lots of cool stuff . As I write this I am watching the live stream of the 2 days-long launch event. If you want to learn about python support in...

View Article

Image may be NSFW.
Clik here to view.

Python稳坐AI时代头牌语言 奇酷学院领跑智能时代

python稳坐AI时代头牌语言 奇酷学院领跑智能时代 一点号奇酷学院昨天 谁会成为AI和大数据时代的第一开发语言?这本已是一个不需要争论的问题。如果说三年前,Matlab、Scala、R、Java 和 Python还各有机会,局面尚且不清楚,那么三年之后,趋势已经非常明确了,特别是前两天 Facebook 开源了 PyTorch 之后,Python 作为 AI...

View Article


Python 入门教程 Lesson 2.2 - Web 开发入门

在浏览器的地址栏上输入 URL ,并按下回车后发生了什么? 在浏览器地址栏输入一个URL后回车,背后会进行哪些技术步骤? 从输入 URL 到页面加载完成的过程中都发生了什么事情? 前端经典面试题: 从输入 URL 到页面加载发生了什么? 当时发生了什么? HTTP 协议 关于HTTP协议,一篇就够了 HTTP 协议入门 HTTP协议详解 HTTP 协议主要包括这几项内容 请求和响应 无状态 URL...

View Article

python正则学习

python group() 正则表达式中,group()用来提出分组截获的字符串 ,()用来分组 import re a = "123abc456" print re.search("([0-9]*)([a-z]*)([0-9]*)",a).group(0) #123abc456,返回整体 print re.search("([0-9]*)([a-z]*)([0-9]*)",a).group(1)...

View Article


Image may be NSFW.
Clik here to view.

TPYBoard-GPS开发板:目前唯一支持通信定位功能的MicroPython开发板

python已经成为相当热门的程序语言。它以着名的Monty Python喜剧组命名,属于面向对象和解释型语言(非编译型)。该属性使得Python具有良好的跨平台性,比如linux和windows,或是诸如Raspberry Pi等单板计算机。...

View Article

flask 源码解析:session

这是 flask 源码解析系列文章的其中一篇,本系列所有文章列表: flask 源码解析:简介 flask 源码解析:应用启动流程 flask 源码解析:路由 flask 源码解析:上下文 flask 源码解析:请求 flask 源码解析:响应 flask 源码解析:session session 简介 在解析 session 的实现之前,我们先介绍一下 session 怎么使用。session...

View Article

Python进程-创建,属性,退出

python提供一个multiprocessing模块,取代threading来更加充分的利用CPU,避免Python全局解释器锁所带来的性能瓶颈。 创建一个进程最简单的方法是利用一个目标函数实例化一个Process对象,调用其start()使其工作。 # -*- coding:utf-8 -*- '''@Author: 三个橘子@Email : ipapu@qq.com'''import...

View Article
Browsing all 9596 articles
Browse latest View live