
Python
简单的小宋
本人专注于产品规划设计,项目管理,Java开发技术等相关知识,目前处于RPA行业,担任高级产品经理,望与各位博友共同成长。以梦为马,不负韶华。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
python本地文件路径选择
import tkinter as tkfrom tkinter import filedialogdef getLocalFile(): root=tk.Tk() root.withdraw() filePath=filedialog.askopenfilename() print('文件路径:',filePath) return filePath原创 2020-09-04 16:35:18 · 7239 阅读 · 3 评论 -
Python 获取本地工作目录
osimport osprint os.getcwd() #获取当前工作目录路径print os.path.abspath('.') #获取当前工作目录路径print os.path.abspath('test.txt') #获取当前目录文件下的工作目录路径print os.path.abspath('..') #获取当前工作的父目录 !注意是父目录路径print os.path.abspath(os.curdir) #获取当前工作目录路径 组合路径import osroot = os原创 2020-09-04 16:27:26 · 5959 阅读 · 3 评论 -
初入Python安装和基本写法
初入Python和基本写法安装事项:https://www.python.org/downloads/windows/在该网站下直接下载相应的python版本。在cmd窗口输入python验证下载是否成功,可以看到下载的python版本python可以直接在cmd窗口进行交互式的编程,也可以使用Python自带的IDLEJupyter Notebook工具:安装jupyter no...原创 2019-10-12 14:35:06 · 6405 阅读 · 2 评论