kearney

自学还没成才的python猿

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2018年6月15日

摘要: def exifread_infos(photo): import exifread #加载 ExifRead 第三方库 https://pypi.org/project/ExifRead/ #获取照片时间、经纬度信息 #photo参数:照片文件路径 # Open image file for reading (binary mode) ... 阅读全文
posted @ 2018-06-15 14:54 Gino森 阅读(5578) 评论(0) 推荐(0) 编辑

2017年11月27日

摘要: 参考资料:python+Django的web开发实例 一、创建项目 如果这是你第一次使用Django,那么你必须进行一些初始设置。也就是通过自动生成代码来建立一个Django项目--一个Django项目的设置集,包含了数据库配置、Django详细选项设置和应用 特性配置,具体操作步骤如下所示。 1. 阅读全文
posted @ 2017-11-27 18:36 Gino森 阅读(476) 评论(0) 推荐(0) 编辑

2017年11月24日

摘要: pip安装报错:is not a supported wheel on this platform import pip; print(pip.pep425tags.get_supported()) 阅读全文
posted @ 2017-11-24 16:21 Gino森 阅读(547) 评论(0) 推荐(0) 编辑

2017年11月19日

摘要: pip install wordcloud 出现:error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat) 阅读全文
posted @ 2017-11-19 17:29 Gino森 阅读(3225) 评论(0) 推荐(0) 编辑

2017年11月16日

摘要: http://blog.csdn.net/peng790/article/details/52266751 可以使用以下DOS命令达到目的(即“开始”菜单,“运行”,输入 cmd 再按回车): (此处假设你要合并的高清文件位于 E:\temps 这个位置) copy/b E:\temps\*.ts 阅读全文
posted @ 2017-11-16 21:49 Gino森 阅读(30866) 评论(0) 推荐(0) 编辑

摘要: http://www.pptstore.net/article/ppt/1664.html 工作中经常碰到要将PPT页面转成高清图片的场景,但默认情况下,PPT另存为JPG格式图片的时候,图片分辨率通常在960×720(和你的电脑显示器桌面分辨率有一定关系)。这么解决这种问题呢?经过查找资料和亲身实 阅读全文
posted @ 2017-11-16 16:01 Gino森 阅读(1872) 评论(0) 推荐(0) 编辑

2017年11月1日

摘要: http://blog.csdn.net/cs123951/article/details/52618873 win10 64位python3.4 使用pip install scrapy安装scrapy的时候出现错误 error: Microsoft Visual C++ 10.0 is requ 阅读全文
posted @ 2017-11-01 19:40 Gino森 阅读(1412) 评论(1) 推荐(1) 编辑

2017年10月12日

摘要: xlrd——merged_cells https://www.2cto.com/kf/201501/373655.html 获取合并的单元格 读取文件的时候需要将formatting_info参数设置为True,默认是False merged_cells返回的这四个参数的含义是:(row,row_r 阅读全文
posted @ 2017-10-12 14:38 Gino森 阅读(1154) 评论(0) 推荐(0) 编辑

2017年9月29日

摘要: ''' Created on 2017年9月25日 @author: kearney ''' import random def get_UserAgents(): UserAgents= [ "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) C... 阅读全文
posted @ 2017-09-29 17:35 Gino森 阅读(826) 评论(0) 推荐(0) 编辑

摘要: ''' Created on 2017年9月28日 @author: kearney ''' import os def isFile(filePath):#修改文件扩展名 filename=filePath.split('\\')[-1]#拆分文件路径获得文件名 fatherPath=filePath.replace(filename,'')#获得父级路径 s... 阅读全文
posted @ 2017-09-29 16:12 Gino森 阅读(928) 评论(0) 推荐(0) 编辑