摘要: #变量E盘下的mp3文件,输出mp3文件的路径import osbase=r'E:\\'tag=['.txt'] def getmp3(root,label): base_list = [os.path.normcase(i) for i in os.listdir(root) if i !='Sy... 阅读全文
posted @ 2013-05-14 18:27 前行者2011 阅读(119) 评论(0) 推荐(0) 编辑
摘要: #coding:utf-8import threadingimport osimport timedef main(name,*types): for root,dirs,files in os.walk(name): for f in files: if ... 阅读全文
posted @ 2013-05-14 16:06 前行者2011 阅读(156) 评论(0) 推荐(0) 编辑
摘要: while True: try: m=input('Please input first namuber:') n=input('Please input second namuber:') res= m/n #多个异常,建议此处使用Exception e;使用e打印详细异常信息 except (... 阅读全文
posted @ 2013-05-14 13:35 前行者2011 阅读(117) 评论(0) 推荐(0) 编辑