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

Image may be NSFW.
Clik here to view.

python中Super的用法

python中Super的用法 一点号Python热爱者2小时前 super 是用来解决多重继承问题的,直接用类名调用父类方法在使用单继承的时候没问题,但是如果使用多继承,会涉及到查找顺序(MRO)、重复调用(钻石继承)等种种问题。总之前人留下的经验就是:保持一致性。要不全部用类名调用父类,要不就全部用 super,不要一半一半。...

View Article


Python初体验_基础(一)

一:变量 变量的赋值: name = “Meng” 上述代码声明了一个变量,变量名为name,变量name的值为:”Meng“ 变量定义: 一个在内存存数据的容器。 变量的意义: 保存程序执行的中间结果或状态,以供后面的代码调用。 变量定义规则: 二:缩进:...

View Article


Mathematical Modules in Python: Math and Cmath

When writing programs in our day-to-day life, we usually come across situations where we need to use a little maths to get the task done. Like other programming languages, python provides various...

View Article

通过Python的argparse模块解析命令行选项

作者:杨冬 欢迎转载,也请保留这段声明。谢谢! 出处: https://andyyoung01.github.io/ 或 http://andyyoung01.16mb.com/ 如果想要通过python写出一个基于命令行的程序,如果程序的命令行参数较多,可以使用Python内置的argparse模块来处理命令行参数。 可以通过一个实例程序来探索argparse的用法: search.py...

View Article

Reuven Lerner: Free download: Cheat sheet for Python data structures

Get the python data manipulations cheat sheet Just about every day of every week,I teach Python. I teach not only in Israel, but also in Europe, China, and the US. While I do teach newcomers to...

View Article


Mike Driscoll: PyDev of the Week: Oleg Broytman

This week we welcome Oleg Broytman ( @phd_ru ) as our PyDev of the Week. Oleg is the maintainer of the SQLObject project. According to their website “ SQLObject is a popular Object Relational Manager...

View Article

Image may be NSFW.
Clik here to view.

Pycharm实现远程编辑和运行调试

Pycharm实现远程编辑和运行调试 因为最近在公司需要在设备上运行代码,虽然用Xshell+Xftp很方便但是还是觉得不够爽, 所以就在度娘上找能不能用Pycharm实现远程编辑,后来发现Pycharm原来如此强大,不仅能将本地的代码与远端代码映射, 还能使用远端的环境进行运行和调试。 我们来看看如何配置吧: 首先配置远程编辑...

View Article

Minimalist measurement of python code time

timy Minimalist measurement of python code time You can also use the built-in timeit module Installing pip install timy Usage Decorating a function Let's say you have a calculate function and you want...

View Article


Image may be NSFW.
Clik here to view.

PyTennessee: PyTN Profiles: Eric Appelt and Six Feet Up

Speaker Profile: Eric Appelt ( @appeltel ) I’m an IBM software engineer working in cloud data storage, with previous experience in big data working as a research physicist with the CMS experiment at...

View Article


Image may be NSFW.
Clik here to view.

python __debug__

The other day I stumbled upon python __debug__ and I thought I would share some interesting things I learned about it. What is python __debug__? It is a constant that Python uses to determine if calls...

View Article

Image may be NSFW.
Clik here to view.

Count the total number of frames in a video with OpenCV and Python

Today’s blog post is part of a two part series on working with video files using OpenCV and python. The first part of this series will focus on a question emailed in by PyImageSearch reader, Alex. Alex...

View Article

Image may be NSFW.
Clik here to view.

R、SQL、Python,看数据科学家最喜欢的编程语言

R、SQL、python,看数据科学家最喜欢的编程语言 3小时前来源:51CTO 数据的爆炸增长以及公司将数据转化为商业价值的巨大可能性,不断增加着市场对数据科学家的需求。...

View Article

Image may be NSFW.
Clik here to view.

Working with PDF files in Python

All of you must be familiar with what PDFs are. In-fact, they are one of the most important and widely used digital media. PDF stands for Portable Document Format . It uses .pdf extension. It is used...

View Article


Image may be NSFW.
Clik here to view.

Building Spotify's Song Radio in 100 lines of Python

Somebody said that when it comes to deep learning, it is still very early days, Like 1995 (I was going to lookup the quote, but I can't find - it was probably Churchill or Mark Twain ). I disagree....

View Article

GoDjango: 5 Reasons I don't think you shold use the django admin

Have you ever needed to quickly modify data or look it up. But while the task is simple the entire process of changing one value frustrates you? Well, this is very common to me, bad UX is annoying. I...

View Article


Image may be NSFW.
Clik here to view.

Mistakes I Made Writing a Django App (and How I Fixed Them)

I recently announced the release of a project I’ve been working on for a few months. The project is called Lintly . It is a continuous python code quality checking tool that lints your code when you...

View Article

Image may be NSFW.
Clik here to view.

Bokeh 0.12.4 发布,Python 交互式可视化库

python 交互式可视化库Bokeh 0.12.4 发布了。该版本包含了大量的 bug 修复和新特性。 值得关注的更新有: 高效的二进制数组协议 ( #2204 ) 将 CustomJS 回调添加到任何属性的一般机制( #5498 ) 日志图的一些修复( #2789 , #3834 , #5389 , #5549 , #5576 ) 与自定义扩展相关的修复( #5315 , #5590 )...

View Article


Image may be NSFW.
Clik here to view.

3xp10it自动化渗透测试框架1.0

About3xp10it 3xp10it是一个自动化渗透测试框架,目前没有做到完全自动化[自动上传漏洞利用框架和自动fuzz框架暂时没有加入。 b)支持功能列表 高危漏洞扫描模块 爬虫模块 目标网站脚本类型检测 目录扫描模块 sqli扫描模块 robots/sitemap自动收集 cms识别与cms漏洞扫描模块 自动识别管理员页面并爆破[支持自动识别简单验证码]...

View Article

Image may be NSFW.
Clik here to view.

Chromebackdoor - 浏览器后门工具

项目地址: https://github.com/graniet/chromebackdoor Chromebackdoor 是一款渗透测试工具,该工具使用 MITB 技术生成windows可执行文件 “.exe”,启动程序会运行恶意的插件扩展,或运行支持主流浏览器的脚本,并发送所有 DOM 数据以执行命令进行控制。 安装方法 环境要求: pip install crxmake wine32...

View Article

Learning Python Comments and Math in your Apps!

In this post we will examine two great features we can begin using in our amazing python applications. The first is the ability to use the pound sign (#) in order to add comments to our code. This of...

View Article
Browsing all 9596 articles
Browse latest View live