12.python文件目录
curdir=os.path.dirname(os.path.dirname(os.path.abspath(__file__))) curdir=os.path.dirname(os.path.abspath(__file__)) curdir=os.path.join(curdir, 'test.py') print curdir
    http://www.cnblogs.com/makexu/
curdir=os.path.dirname(os.path.dirname(os.path.abspath(__file__))) curdir=os.path.dirname(os.path.abspath(__file__)) curdir=os.path.join(curdir, 'test.py') print curdir
