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

Image may be NSFW.
Clik here to view.

You Can't Have a Rollback Button

You Can’t Have a RollbackButton The internet is a big truck. It’s really hard to drive it backwards. I’ve worked with deploy systems in the past that have a prominent “rollback” button, or a console...

View Article


Julien Danjou: Python never gives up: the tenacity library

A couple of years ago, I wrote about the python retrying library . This library was designed to retry the execution of a task when a failure occurred. I started to spread usage of this library in...

View Article


Image may be NSFW.
Clik here to view.

Knowing your Python scripting environment

My preferred learning method is to get a good example of how to do something and work on extending the example to do what I really want it to do. One of my favorite blogs I follow that let's me do...

View Article

谷歌开源 Python Fire;一张图读懂 Python、R 的大数据应用等

谷歌开源 python Fire;一张图读懂 Python、R 的大数据应用等 4小时前来源:雷锋网 ▲ 内容预览: 谷歌开源 Python Fire NASA 发布 2017-2018 软件目录,供开发者免费使用 一张图看懂大数据中 R 语言的应用 一张图看懂大数据中 Python 的应用 每日推荐阅读 谷歌搜索技术分析,如何一步步实现“不止于关键词”? %

View Article

python异常捕获

在python中处理异常使用的是try-except代码块,try-except代码块放入让python执行的操作,同时告诉python程序如果发生了异常该怎么办,try-except这个功能其实很多入门书籍中都放到了高级篇幅里,在入门的时候一般不会讲这个使用,尤其是作为运维人员,如果你经常写shell,转到python后估计也很少使用这个功能,这功能我觉得说明了shell和python的一个重要区...

View Article


Writing a Web Service Using Python Flask

Many of our customers are building useful services using our webhook feature ― but unfortunately, others are not. Often we hear that no one on their team is proficient enough to write a service that...

View Article

Scraping Meth Labs with Python

For awhile in my GIS courses I have pointed to the DEA’s website that has a list of busted meth labs across the county, named the National Clandestine Laboratory Register . Finally a student has shown...

View Article

Introducing Python Fire, a library for automatically generating command line...

Today we are pleased to announce the open-sourcing of python Fire . Python Fire generates command line interfaces (CLIs) from any Python code. Simply call the Fire function in any Python program to...

View Article


Image may be NSFW.
Clik here to view.

Python Environment for Time Series Forecasting

The python ecosystem is growing and may become the dominant platform for applied machine learning. The primary rationale for adopting Python for time series forecasting is because it is a...

View Article


python sorted函数的小练习

前两天学习了一下socket编程,在向某大神请教问题时被嫌弃了,有一种还没学会走就想跑的感觉。大神说我现在的水平应该去做一些像是操作文件、序列号等的小练习来加深理解。下面是他给我出的小练习: 1、datas = [['sherry',19,'female'],['flora',21,'female'],['june',15,'femal']],分别根据名字首字母和年龄进行排序输出;...

View Article

Image may be NSFW.
Clik here to view.

Python入门教程(2)

人生苦短,我玩蛇0.0! python(英语发音:/paθn/), 是一种面向对象、解释型 计算机程序设计语言 ,由 Guido van Rossum 于1989年底发明,第一个公开发行版发行于1991年,Python 源代码同样遵循 GPL(GNU General Public...

View Article

干货|超实用的 Python/NumPy实现的多模神经网络语言模型

干货|超实用的 python/NumPy实现的多模神经网络语言模型 14小时前来源:威腾网 选自:Github 翻译:张妮娜 在基础NumPy系统中实现“多模态神经语言模型”(Kiros et al, ICML 2014),包含加法和乘法的对数双线性图像字幕生成器。这些模型不同于其他大多数图像字幕生成器,它们不使用循环神经网络。...

View Article

Receiving Files with a Flask REST API

Introduction Over the past two months, I’ve spent a lot of time learning about designing and implementing REST APIs. It’s been a lot of fun learning what a REST API is and I really enjoyed learning how...

View Article


Talk Python to Me: #101 Adding a full featured Python environment to Visual...

You know the two questions I asked at the end of each episode? What's your favorite editor for writing python code and what less-well-known PyPI package do you recommend? Well this time, we are making...

View Article

谷歌开源 Python Fire:可自动生成命令行接口

今天我们很高兴地宣布 python Fire 开源。Python Fire 可从任何 Python 代码生成命令行接口(command line interfaces (CLIs)),简单地调用任意 Python 程序中的 Fire 函数以将那个程序自动地转化为 CLI。该库可通过 `pip install fire` 从 pypi 获取,也可参考 Github 上的资源。 Python Fire...

View Article


Image may be NSFW.
Clik here to view.

Cleaning up in a Python generator can be dangerous

This code in this post is in python 3, but aside from “cosmetic” differences, such as next(g) vs g.next() it applies to Python 2 as well. A few days ago someone from my work called me to take a look...

View Article

iPython与notevook的基本用法

1 Ipython 安装 pip install ipython 2 Notebooke 基本用法 启动ipython使用ipython 启动notebook 使用 ipython notebook 3 远程使用Ipython notebook 的配置方法 3.0 创建远程服务 语法: ipython profile create<你要创建的服务器名> e.g.: ipython...

View Article


python 特殊方法之new

object. __new__ ( cls [, ... ] ) Called to create a new instance of class cls .is a static method (special-cased so you need not declare it as such) that takes the class of which an instance was...

View Article

Reading Wikipedia XML Dumps with Python

Wikipedia contains a vast amount of data. It is possible to make use of this data in computer programs for a variety of purposes. However, the sheer size of Wikipedia makes this difficult. You should...

View Article

Image may be NSFW.
Clik here to view.

AntiVirus Evasion Reconstructed Veil 3.0

The Veil Framework is a collection of tools designed for use during offensive security testing. When the time calls for it,Mandiant’s Red Team will use the Veil-Framework to help achieve their...

View Article
Browsing all 9596 articles
Browse latest View live