花费 15 ms
python如何得到模块所在的目录

查找一个python模块所在的路径,可以使用‘__file__’方法获取模块的路径。 如: 得到‘os’模块的路径:“'C:\\Users\\username\\anaconda3\ ...

Tue Jul 06 08:18:00 CST 2021 0 139

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM