-
Python目录与文件操作
-
热度 1 2014-3-3 21:26
-
版本:Python 2.7.5 环境:Windows 7 一、判断一个路径是否存在 os.path.exists(path) 如果路径存在则返回True,否则返回False. 1 2 3 4 5 6 7 8 9 10 11 12 importos importgetpass # 获取当前系统用户名 user_name =getpass.getuser() # 获取系统桌面目录 des ...
-
个人分类: Python|11484 次阅读|2 个评论 热度 1
本页有 1 篇博文因作者的隐私设置或未通过审核而隐藏