TroyGrosfield.com TroyGrosfield.com

Archive for October, 2011

Headline

Python Cheat Sheet

Author
by Troy Grosfield
Date
October 17th, 2011
Category
Developer
Story

Frequently used methods I use in Python with examples. Date and Datetime Lists and Sets Finding Intersection of 2 Lists Working with Urls Date and Datetime Useful links: http://docs.python.org/library/datetime.html#strftime-and-strptime-behavior http://labix.org/python-dateutil String to Datetime Convert a string into a datetime object. >>> from datetime import datetime >>> datetime.strptime(‘Jun 1 2005  1:33PM’, ‘%b %d %Y %I:%M%p’) datetime.datetime(2005, … read more

Tags
Comments
No Comments »