kearney

自学还没成才的python猿

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

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森 阅读(929) 评论(0) 推荐(0) 编辑