摘要: #coding:utf-8import osfor root,dirs,files in os.walk("D:\\"): if dirs == [] and files ==[]: os.system('rd /S /Q %s' %root) 用walk()遍历文件夹,判断if dirs == [] and files ==[]: 然后调用shell命令删除文件夹! 阅读全文
posted @ 2012-01-22 09:42 cacique 阅读(1004) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE ><html> <head> <meta charset="UTF-8"/> <link rel="stylesheet" type="text/css" href="style/base.css" /> <link rel="stylesheet" type="text/css" href="style/base-ui.css" /> <script typ 阅读全文
posted @ 2012-01-22 09:41 cacique 阅读(421) 评论(1) 推荐(0) 编辑
Copyright ©2011 Goodspeed Cheng