python输出当前目录下的index.html文件路径
import os import sys path = os.path.join(os.path.dirname(sys.argv[0]), 'index.html') print path
python输出当前目录下的index.html文件路径
import os import sys path = os.path.join(os.path.dirname(sys.argv[0]), 'index.html') print path