内容过程中中,把内容过程中较好的内容段备份一下,如下内容是关于python获取当前运行程序所在的路径的内容,应该是对码农有些用处。

import os.path
print os.path.realpath(file)