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

Image may be NSFW.
Clik here to view.

Python实现图书超期提醒小帮手

一、实现目的 本来就很喜欢逛图书馆,时不时去借本书(注:借的都没看过),但我这个学期突然发现了问题,每本书都可以借两个月,但不幸的是我最近一学期借的书全部超期,一天一毛钱,我心疼这钱啊!!!灵机一动,为什么不写个脚本来通知自己图书超期呢?说了这么多废话,我们就进入主题吧!!! 二、模拟登录图书馆管理系统 我们可以先看一下登录页面(很多学校这些管理系统页面就是很low): 两种方式去模拟登录图书馆...

View Article


Stack vs Register bytecodes for Python

There seems to be a consensus that register bytecodes are superior to stack bytecodes. I don't quite know how to cite "common knowledge", but doinga google search for "python register VM" or "stack vs...

View Article


Image may be NSFW.
Clik here to view.

Gocelery: Celery Distributed Task Queue in Go

gocelery Go Client/Server for Celery Distributed Task Queue Having being involved in a number of projects migrating server from python to go, I have realized Go can help improve performance of existing...

View Article

Image may be NSFW.
Clik here to view.

9 Ways For Marketers To Do Amazing Technical Things Without Knowing Code

As a marketer, you are always looking to do more with less. You may get the sense that technology can help you do better and you’re right. Follow along as I explain exactly how you can harness this...

View Article

Python Processes

In taking Vivek Ramachandran’s course on python for Pentesting , in lecture 13 he deals with the subject of processes. Personally I feel he jumps into a more intermediate/advanced topic from where we...

View Article


Marcos Dione: osm-centerlines-two-days-after

In this last two days I've been expanding osm-centerlines . Now it not only supports ways more complex than a simple rectangle, but also ones that lead to 'branches' (unfortunately, most probably...

View Article

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

Bokeh 0.12.1 发布了,Bokeh (Bokeh.js) 是一个 python 交互式可视化库,支持现代化 Web 浏览器,提供非常完美的展示功能。Bokeh 的目标是使用D3.js样式提供优雅,简洁新颖的图形化风格,同时提供大型数据集的高性能交互功能。Boken 可以快速的创建交互式的绘图,仪表盘和数据应用。 更新内容: * bugfixes: - #1277 Syncing two...

View Article

Image may be NSFW.
Clik here to view.

使用python进行简单的数据分析

关于如何使用python进行数据分析的文章很多,相关的书籍也有很多。本文是基于Excel思维使用python进行数据分析,换句话说就是本文不是传统意义上的专业python文章。文章的内容共分为8个部分,从最基础的数据导入和读取到分析结果的图表化输出。这其中包含了很多与Excel非常相似的函数和分析功能,如SUM,COUNTIF,TRANSPOSE函数,以及数据筛选,分类汇总和数据透视表等功能等等,这...

View Article


python的解释器级别对象的实现方法

最近在重构项目代码, 有个需求是需要声明一个变量, 然后任何 import 了这个变量的模块, 当这个变量在其它地方更改了值以后, 这个变化都能反映出来, 乍看好像有点麻烦, 其实很简单. 就通常的想法来讲, 你用 Dict 或一个类实例都能实现. 因为在使用它们时, 本质上还是一种引用的方式, 而不是像其它变量是值复制, 所以它们的修改或变化是肯定能反映出来的 比如tornado的...

View Article


Mathematical Functions in Python | Set 4 (Special Functions and Constants)

Some of the mathematical functions are discussed in below set 1, set 2 and set 3 Mathematical Functions in python | Set 1 (Numeric Functions) Mathematical Functions in Python | Set 2 (Logarithmic and...

View Article

Best Gitter channels: Python & Django

python is a dynamic, object-oriented language that combines combines remarkable power with very clear syntax.Python is relatively easy to learn, available everywhere, and embraced by the industry. It...

View Article

Python编码格式的指定方式

参考自:http://python.jobbole.com/85852/, 原文探究的更深,有兴趣的可以去看看。 简介来讲就是使用一种特殊的注释来声明编码格式,如何判断这种格式也用了很简单粗暴有效的办法--正则表达式;正则表达式如下: ^[ \t\v]*#.*?coding[:=][ \t]*([-_.a-zA-Z0-9]+) 也就是说 # -*- coding:utf-8 -*-#...

View Article

Image may be NSFW.
Clik here to view.

Python黑帽编程 2.0 第二章概述

python 黑帽编程 2.0 第二章概述 于 20 世纪 80 年代末, Guido van Rossum 发明了 Python ,初衷据说是为了打发圣诞节的无趣, 1991 年首次发布,是 ABC 语言的继承,同时也是一种脚本语言。取名时, Guido van Rossum 认为它应该“短小,独特,还有一点神秘感”,他是英国著名剧团 Monty Python 的忠实粉丝,所以就是 Python...

View Article


Image may be NSFW.
Clik here to view.

后台开发之架构

实习 近期在某家公司实习,顺应公司部门文化有一场为期十天左右的实习生小组赛,内容就像 黑客马拉松 一样。 正好在此小组负起后台开发的职责,技术选择是 python 的 Web框架 Flask , 至于本文想要记录的并不是 flask 这个框架怎么用,好不好用,而是其他一些一直以来比较零散的知识 也许这是在学校中开发所注意不到的,那就是实际情况总是与理想状态相去甚远。 架构图...

View Article

Image may be NSFW.
Clik here to view.

Reading through the Python standard library

ByMatt Layman on July 29, 2016 A couple of years ago I decided to read the entire python standard library. A few months back, I finished. What I learned is this: while there is some interesting...

View Article


Brief go through fuglu a mail scanner daemon

This is way long overdue that I promised to write a blog for a good dear friend on his python mail scanner daemon. And today, finally got my spare time to review Fuglu . First, what is Fuglu? Fuglu is...

View Article

Image may be NSFW.
Clik here to view.

ESP8266 MicroPython Contest Gives You the Excuse You Need

As if the prospect of having everyone’s favorite scripting language ported over weren’t enough to get you to install Micropython on a spare ESP8266, there is now a contest for that. Over on...

View Article


Image may be NSFW.
Clik here to view.

python之RabbitMQ

import pikaconnection=pika.BlockingConnection(pika.ConnectionParameters(host='192.168.0.74')) #服务器地址channel=connection.channel()channel.queue_declare(queue='Hi')...

View Article

Python操作 Memcached

Memcached Memcached 是一个高性能的分布式内存对象缓存系统,用于动态Web应用以减轻数据库负载。它通过在内存中缓存数据和对象来减少读取数据库的次数,从而提高动态、数据 库驱动网站的速度。Memcached基于一个存储键/值对的hashmap。其守护进程(daemon )是用C写的,但是客户端可以用任何语言来编写,并通过memcached协议与守护进程通信。...

View Article

Building Python modules on CircleCI OS X Instances

Building python modules on CircleCI OS X instances Recently I've been building a couple of supplimental build tools in Python for enhancing the development process of the iOS application I work on....

View Article
Browsing all 9596 articles
Browse latest View live