import pandas as pd
import os if __name__ == '__main__':
Folder_Path = 'c:\checklog' os.chdir(Folder_Path)
file_list = os.listdir() writer = pd.ExcelWriter('c:\shuju\out.xlsx')
list = [] for item in file_list:
file_path = os.path.join(Folder_Path, item)
df = pd.read_excel(file_path, sheet_name=0) for index, row in df.iterrows():
if isinstance(row['核查说明'], str):
list.append(row) df2 = pd.DataFrame(list)
df2.to_excel(writer, sheet_name='sheet1')
writer.save()

最新文章

  1. cxf WebService设置wsdl中soapAction的值
  2. IOSGCD
  3. HDU 2717 Catch That Cow(BFS)
  4. [原]项目进阶 之 集群环境搭建(二)MySQL集群
  5. php拦截器(魔术方法)
  6. Xcode如何简单安装Alcatraz
  7. PhpStorm 10.0注册
  8. 【原】eclipse创建maven工程时,如何修改默认JDK版本?
  9. Go语言--数组、切片、
  10. 2.9 while循环
  11. laravle框架报错Malformed UTF-8 characters, possibly incorrectly encoded
  12. angular如何引入公共JS
  13. js中创建对象
  14. 了解AOP
  15. Maven项目中添加JDBC驱动
  16. 将AJAX Post的Data转为对应的Class
  17. Cassandra概念学习系列之Cassandra是什么?
  18. HDU 3262/POJ 3829 Seat taking up is tough(模拟+搜索)(2009 Asia Ningbo Regional)
  19. mysql库操作
  20. post get 方法

热门文章

  1. codefroces Round #201.B--Fixed Points
  2. C++入门经典-例6.13-指针与二维数组
  3. C++入门经典-例2.4-使用scanf格式输入函数得到用户输入的数据
  4. Scala学习(二)——高级特性
  5. 有关C#写一个WindowsService的两篇文章
  6. leetcode 128最长连续序列
  7. 从txt导入数据到mysql
  8. JAVA初级面试题,附个人理解答案
  9. python中_new_()与_init_()的区别
  10. IP冲突如何把冲突的IP挤下去