JavaShuo
欄目
標籤
python3中的os.path.dirname(__file__)的使用
時間 2020-06-29
標籤
python3
python
os.path.dirname
path
dirname
file
使用
欄目
Python
简体版
原文
原文鏈接
os.path.dirname(__file__)的做用是 返回腳本的路徑,即文件路徑中所在的目錄(不包含文件名),以下:spa import os path = os.path.dirname('D:\test\t.py') print(path) 結果: code D:\test Process finished with exit code 0 注意事項:it 在運行的時候若是輸入完整的執
>>阅读原文<<
相關文章
1.
matplotlib在python3中的使用
2.
python3中的raise使用
3.
python3中使用Redis
4.
python3中使用urldecode
5.
python3 Easygui的使用
6.
Python3中使用PyMongo的方法詳解
7.
Python3中BeautifulSoup的使用方法
8.
python3中的struct模塊使用
9.
python3中列表的使用方法。
10.
在spark2中的shell使用python3
更多相關文章...
•
Spring中Bean的作用域
-
Spring教程
•
在Spring中使用Redis
-
Redis教程
•
C# 中 foreach 遍歷的用法
•
Composer 安裝與使用
相關標籤/搜索
xcode5的使用
使用過的
Docker的使用
用的
php中的curl
使用
網絡命令的使用
最近使用的文件
popupMenu的簡單使用
JBPM工做流的使用
Python
Spring教程
MySQL教程
Redis教程
應用
註冊中心
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
「插件」Runner更新Pro版,幫助設計師遠離996
2.
錯誤 707 Could not load file or assembly ‘Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKe
3.
Jenkins 2018 報告速覽,Kubernetes使用率躍升235%!
4.
TVI-Android技術篇之註解Annotation
5.
android studio啓動項目
6.
Android的ADIL
7.
Android卡頓的檢測及優化方法彙總(線下+線上)
8.
登錄註冊的業務邏輯流程梳理
9.
NDK(1)創建自己的C/C++文件
10.
小菜的系統框架界面設計-你的評估是我的決策
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
1.
matplotlib在python3中的使用
2.
python3中的raise使用
3.
python3中使用Redis
4.
python3中使用urldecode
5.
python3 Easygui的使用
6.
Python3中使用PyMongo的方法詳解
7.
Python3中BeautifulSoup的使用方法
8.
python3中的struct模塊使用
9.
python3中列表的使用方法。
10.
在spark2中的shell使用python3
>>更多相關文章<<