#!/usr/local/bin/python2 import os print os.path.splitext('a.py')