python 基础之确认文件是否存在
2016-06-10 11:40
323 查看
def check_exist_bills(): file_dir=os.listdir('../db') bills_db_list=[] for item in file_dir: if item.endswith('bills.json'): bills_db_list.append(item) print(bills_db_list) return bills_db_list
相关文章推荐
- python threading
- Python 必选参数,默认参数,可变参数,关键字参数和命名关键字参数
- Python中的if __name__='__main__'语句的作用
- python学习之路-5 基础进阶篇
- 【转帖】pyspider:connect to scheduler rpc error: error(10061, '')问题解决方案
- python 系统级错误代码
- python 生成器总结
- 直接运行Python程序
- Panda3D学习之路(二)
- 最长递增自序列 python
- python regex
- python之路 模块,序列化,迭代器,生成器
- python的递归函数--含尾递归
- python中的切片--Splice
- 老男孩学习---python课程Day05
- 老男孩学习---python课程Day01
- Python 2.7中的Numpy、SciPy、MatPlotLib安装与配置
- build python 2.7.11 for mips
- Python3学习笔记07-特殊方法与多范式、上下文管理器、对象的属性
- Python3学习笔记08-闭包、装饰器、内存管理