- 博客(5)
- 收藏
- 关注
转载 比较文件
import os,sysdef delblankline(infile,outfile): infopen = open(infile) outfopen = open(outfile,'w') lines = infopen.readlines() for line in lines: if line.split():...
2017-04-25 11:19:00
82
转载 把cvsfile 转换成excel
import openpyxl,csv,osexl=openpyxl.Workbook()for csvfile in os.listdir("."): if not csvfile.endswith(".csv"): continue print('change csv file ' + csvfile + '...') ...
2017-03-14 17:22:00
190
转载 openpyxl 插入空白行。
import openpyxlstart_line= int(input("enter start:"))m=int(input("blank:"))exl= openpyxl.load_workbook("produceSales.xlsx",data_only=True)sheet = exl.get_sheet_by_name("Sheet")r=sheet...
2017-03-13 16:54:00
2812
转载 mongoDB 基础
1.基础数据库》集合》文档例子:test》blog》{"hello":3}多个键/值对组成文档文档:{"hello":3}多个文档组成集合,多个集合组成数据库。2.操作2.1 插入(inesrt):db.blog.insert({"hello":3});2.2 批量插入(insert):db.blog.insert([{"name":'zhao...
2016-11-10 17:39:00
98
转载 调用api,下载图片
import requests,jsonimport urlliburl='http://apis.baidu.com/txapi/mvtp/meinv'path='F:\\screen\\baidu\\'headers={'apikey':XXXX}page_links=[]names=[]def get_url(num): payload...
2016-11-10 16:23:00
235
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人