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

我的 2016 年

趁女儿睡着了,我终于有时间写篇2016年的总结,希望能赶在新年第一天结束前写完。这一年对我来说很特别,我做了很多技术和非技术的尝试: 写了一本书《python Web开发实战》,到现在已经印刷了7k册,还有3k册正在筹划中。这本书未来还会输出到台湾。 9月份弄的知乎专栏「 Python之美 」,有7k+订阅者。虽然于11月初就不再更新。...

View Article


3 ways of testing Django views

I tried 3 different ways of testing a Django view. These are my thoughts. Say we have this Django view that creates a Post that we want to test: # views.py from . import forms def create_post(request):...

View Article


I Made a New Thing in Perl

January 1st, 2017 Posted inCPAN, Perl , Software (For now, I’m going to casually ignore the fact that it has been literally two years since my last blog posting. If this post heralds a return to...

View Article

2017 Week 1 Review

今天是元旦,因为在 Calendar 中把今天归到 2017 年的第一周里了,所以就按照上面所写的把这周当做第一周吧。 这周结束了在中软的课程设计实训,以前总嫌弃小渔村破,现在回来才知道还是小渔村好啊。课程设计实训的内容是用 Java 写一个点餐系统,一个小组只需要做一份就可以了,不过几乎所有人都不知道 Git 是个什么东西,小组合作还是用的 U...

View Article

Image may be NSFW.
Clik here to view.

我为什么选择Python而不是Matlab和R语言呢?

我为什么选择python而不是Matlab和R语言呢? 一点号大圣众包3小时前 做数据分析、科学计算等离不开工具、语言的使用,目前最流行的数据语言,无非是MATLAB,R语言,Python这三种语言,但今天大圣众包小编简单总结了python语言的一些特点及平常使用的工具等。 php?url=0FNGFO5FSM" alt="我为什么选择Python而不是Matlab和R语言呢?"...

View Article


Image may be NSFW.
Clik here to view.

Multi-Messenger : A python project, messaging via Terminal

The aim of this program is to let users mail/message on FB/SMS anyone using Terminal. The full project can be found here . So, first of all, why Multi-Messenger ? This is the first question which...

View Article

Automate boring stuff

Introduction In my current company all the people who perform creative work (mostly programmers) need to prepare so-called PKUP report. PKUP stands for Podwyszone Koszty Uzyskania Przychodu in the...

View Article

Image may be NSFW.
Clik here to view.

Import Python: Hey Python 2.x programmers do you see yourself making the leap...

Hey python 2.x programmers do you see yourself making the leap to 3.x in 2017 ? - Twitter Poll From ImportPython Blog by Ankur Gupta Hey Python 2.x programmers do you see yourself making the leap to...

View Article


Python的实例方法、静态方法、类方法

0X00 实例方法 python中的实例方法是在面向对象编程中用到的最多的方法类型了。 实例方法 从字面理解就可以,就是说这个方法是属于实例的。每次实例化一个对象出来,这个对象都会拥有这个方法。从下面代码中就可以看得出来,这里我定义了一个实例方法'get_name()',定义实例方法不需要任何特殊的修饰符。 #!/usr/bin/python # coding=utf-8 class...

View Article


Writing readable queries in Django

For my first technical post, let's talk about queries in Django. In a view, typically you'd want to make some queries to add to the template context. For example: def books_list(request): books =...

View Article

Image may be NSFW.
Clik here to view.

python编程(python开发的三种运行模式)

python作为一门脚本语言,使用的范围很广。有的同学用来算法开发,有的用来验证逻辑,还有的作为胶水语言,用它来粘合整个系统的流程。不管怎么说,怎么使用python既取决于你自己的业务场景,也取决于你自己的python应用能力。就我个人而言,我觉得python作为既可以用来进行业务的开发,也可以进行产品原型的开发.一般来说,python的运行主要下面这三种模式。 1.单循环模式...

View Article

Image may be NSFW.
Clik here to view.

Evolving Technologies Scripting

Network management tools often create more frustration for network engineers than problem they can solve. This is true for a number of reasons, including: Many of them are difficult to install and...

View Article

Sentry 8.12.0 发布,Python 实时日志平台

Sentry 8.12.0 发布了。Sentry 是一个实时的事件日志和聚合平台,基于Django构建。 Sentry 可以帮助你将 python 程序的所有 exception 自动记录下来,然后在一个好用的 UI 上呈现和搜索。处理 exception 是每个程序的必要部分,所以 Sentry 也几乎可以说是所有项目的必备组件。 更新内容: Fix bug where some users...

View Article


Python高手之路【二】python基本数据类型

一:数字 int int(整型): 在32位机器上,整数的位数为32位,取值范围为-2**31~2**31-1,即-2147483648~2147483647 在64位系统上,整数的位数为64位,取值范围为-2**63~2**63-1,即-9223372036854775808~9223372036854775807 class int(object): """ int(x=0) -> int...

View Article

Image may be NSFW.
Clik here to view.

Python之导入模块

python之导入模块 一点号Python热爱者2天前 这章教你们怎么导入python的模块,希望对你们有所帮助。 在Python中一个.py文件就是一个模块。 模块也可称为库,可分为三大类:python标准库,第三方模块,应用程序自定义模块 python标准库:安装好python后,自带的库中的模块也叫做内置模块,直接import导入就可直接使用。从帮助文档中查找到这些模块。...

View Article


Image may be NSFW.
Clik here to view.

Command Line Interface Programming in Python

This article discusses how you can create a CLI for your python programs using an example in which we make a basic “text file manager”. Let us discuss some basics first. What is a Command Line...

View Article

PyDev of the Week: Ivan Levkivskyi

This week we welcome Ivan Levkivskyi ( @ILevkivskyi ) as our PyDev of the Week! Ivan is the author or coauthor of several python Enhancement Proposals, specifically 483, 484 and 526. In other words,...

View Article


Corey Oordt: The road to Docker, Django and Amazon ECS, part 1

Introduction After we decided to move the web infrastructure of National Geographic Society (the non-profit side) to Amazon Web Services, we decided it would be a good time to also wrap all our pieces...

View Article

Image may be NSFW.
Clik here to view.

Teaching Python by the (Note)Book

tl;dr:I tried out a modified python lesson and I think it was successful at balancing learner motivation with teaching foundational (and sometimes boring) concepts. This stuff is hard In many ways,...

View Article

Image may be NSFW.
Clik here to view.

PyTennessee: PyTN Profiles: Jon Banafato and TEDxNashville

Speaker Profile: Jon Banafato ( @jonafato ) Jon Banafato is a python developer and event organizer living in NYC. He would love to see you attend PyGotham. Jon will be presenting“What’s in your pip...

View Article
Browsing all 9596 articles
Browse latest View live