摘要:
#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命令删除文件夹! 阅读全文
摘要:
<!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 阅读全文