摘要: #-*- coding:gbk -*- import os import docx from win32com import client as wc import xlwt import xlsxwriter # 获取filepath文件夹下的所有的文件 def getfilelist(filepath): filelist = os.listdir(filepath) ... 阅读全文
posted @ 2018-12-11 19:55 sixu 阅读(3304) 评论(0) 推荐(0) 编辑
摘要: python对文件夹的操作汇总,方便查阅使用 1、遍历指定目录,显示目录下的所有文件名 2、遍历文件夹及其子文件夹的所有文件,获取文件的列表 3、Python 遍历子文件和所有子文件夹 输出字符串 参考: http://blog.csdn.net/Qian_F/article/details/989 阅读全文
posted @ 2017-12-10 15:46 sixu 阅读(3141) 评论(0) 推荐(0) 编辑
摘要: 简单的看下三种情况: 输出结果: 第一种情况,因为列表是mutable,所以可以改变。第二种情况只是在changeList1函数中新创建个[]对象,然后命名l。要想在函数中对列表有实际作用,得像changeList2那样。 阅读全文
posted @ 2017-12-10 15:30 sixu 阅读(4062) 评论(0) 推荐(0) 编辑
摘要: Source: https://leetcode.com/problems/big-countries/#/descriptionDescription: There is a table World A country is big if it has an area of bigger than 阅读全文
posted @ 2017-05-21 15:39 sixu 阅读(627) 评论(0) 推荐(0) 编辑
摘要: Source: https://leetcode.com/problems/trips-and-users/#/descriptionDescription: The Trips table holds all taxi trips. Each trip has a unique Id, while 阅读全文
posted @ 2017-05-21 15:30 sixu 阅读(259) 评论(0) 推荐(0) 编辑
摘要: Source: https://leetcode.com/problems/rising-temperature/#/descriptionDescription: Given a Weather table, write a SQL query to find all dates' Ids wit 阅读全文
posted @ 2017-05-21 15:25 sixu 阅读(144) 评论(0) 推荐(0) 编辑
摘要: Source: https://leetcode.com/problems/delete-duplicate-emails/#/descriptionDescription: Write a SQL query to delete all duplicate email entries in a t 阅读全文
posted @ 2017-05-21 15:08 sixu 阅读(161) 评论(0) 推荐(0) 编辑
摘要: Source: https://leetcode.com/problems/department-top-three-salaries/#/description Description: The Employee table holds all employees. Every employee 阅读全文
posted @ 2017-05-21 15:02 sixu 阅读(165) 评论(0) 推荐(0) 编辑
摘要: Source: https://leetcode.com/problems/department-highest-salary/#/descriptionDescription: The Employee table holds all employees. Every employee has a 阅读全文
posted @ 2017-05-21 14:59 sixu 阅读(177) 评论(0) 推荐(0) 编辑
摘要: Source: https://leetcode.com/problems/customers-who-never-order/#/descriptionDescription: Suppose that a website contains two tables, the Customers ta 阅读全文
posted @ 2017-05-21 14:55 sixu 阅读(125) 评论(0) 推荐(0) 编辑