python输出当前目录下的index.html文件路径的代码
如下的内容段是关于python输出当前目录下的index.html文件路径的内容,希望能对大伙有所用途。
import osimport syspath = os.path.join(os.path.dirname(sys.argv[0]), 'index.html')print path
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。
如下的内容段是关于python输出当前目录下的index.html文件路径的内容,希望能对大伙有所用途。
import osimport syspath = os.path.join(os.path.dirname(sys.argv[0]), 'index.html')print path
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。