随笔分类 -  python

摘要:1 #!/usr/bin/python3 2 import os 3 import sys 4 def scan(path): 5 for x in os.listdir(path): 6 newpath = os.path.join(path,x) 7 if os.path.isdir(newpath): 8 sc... 阅读全文
posted @ 2017-10-24 17:03 子雅陌曦 阅读(292) 评论(0) 推荐(0)
摘要:以上代码中有个问题待解决,在11行输出的文件名并未在12行中全部写入list中,需要查一下问题出在哪 阅读全文
posted @ 2017-10-09 17:55 子雅陌曦 阅读(1069) 评论(0) 推荐(0)
摘要:file->setting->Editor->File and Code Templates->Python Script 添加 #!/usr/bin/python3# -*- coding:utf-8 -*-__author__='$USER' 阅读全文
posted @ 2017-09-14 23:44 子雅陌曦 阅读(814) 评论(0) 推荐(0)