Tony Tan tonytan748.github.io
1.

Nifty Python Tricks

Some Python Useful Ways This Blog tracsfer from (here)[https://pythontips.com/2015/04/19/nifty-python-tricks/] EnumerateInstead of doing: 1234i = 0for item in iterable: print...
2.

Python module: fileinput

Loop many files in a folder and read them by line I just make a example to explane how to use fileinput. fileinput is use to loop some format files in a folder, and read it by ...
3.

Install Kernel4.6 in Ubuntu 15.04

How to upgrade Ubuntu Kernel to 4.6 This blog transfer from here Check the current Linux kernel version with command: 1uname -r Now, we will install Linux Kernel 4.6. You can do...
4.

A Few Things To Remember While Coding In Python

Transfer from http://satyajit.ranjeev.in/2012/05/17/python-a-few-things-to-remember.html Zen of PythonLearing the culture that surrounds a language bringd you one step closer to...
5.

IPython Notebook Introduction 1

This article will introduce some base usage for ipython notebook. IPython Notebook使用浏览器作为界面,向后台的IPython服务器发送请求,并显示结果。在浏览器的界面中使用单元(Cell)保存各种信息。Cell有多种类型,经常使用的有表示格式化文本的Markdown单元,...
6.

Creating Volcano Maps with Pandas and the Matplotlib Basemap Toolkit

Creating Volcano Maps with Pandas and the Matplotlib Basemap Toolkit Transfer from http://ramiro.org/notebook/mapping-volcanoes/ IntroductionThis notebook walks through the proc...
7.

Tornado Web Framework 2

Tornado Web Framework 2 Form and Module 文章转自这里 在第一章中,我们学习了使用Tornado创建一个Web应用的基础知识。包括处理函数、HTTP方法以及Tornado框架的总体结构。在这章中,我们将学习一些你在创建Web应用时经常会用到的更强大的功能。 和大多数Web框架一样,Tornado的一个重要目标就是帮...
8.

Some Python userful functions

use Glob() to find files Many python functions have a long and descriptly name, but maybe you dont know the namespace of glob() functions unless you understand it.It’s like a ...
9.

Python修饰器的函数式编程

本文转自”http://coolshell.cn/articles/11265.html" Python的修饰器的英文名叫Decorator,当你看到这个英文名的时候,你可能会把其跟Design Pattern里的Decorator搞混了,其实这是完全不同的两个东西。虽然好像,他们要干的事都很相似——都是想要对一个已有的模块做一些“修饰工作”...
10.

How to install Celery on Django and create a periodic task

How to install Celery on Django and create a periodic task Celery 3.1.19 and Django 1.8.7.This post explains how to set up Celery with Django, using RabbitMQ as a message broker...