2021年3月14日

有意义的礼物——英语小短文

摘要: 有意义的礼物let's do something really nice for our family this Chrisimas.what did you have in mind?i don't know yet.i just know i want to get out of the min 阅读全文

posted @ 2021-03-14 21:01 ClarenceSun 阅读(267) 评论(0) 推荐(0) 编辑

正则表达式——学习笔记

摘要: 正则表达式 1类的命名:FooMeth()方法的命名:say_hello() match(A,B) 如果有匹配的结果,返回匹配对象,可以用group方法查看对象,如果没有匹配的结果,返回None 匹配字符. 匹配任意一个字符,除了\n\d 匹配数字,0-9\D 匹配非数字\s 匹配空白字符 即空格, 阅读全文

posted @ 2021-03-14 20:59 ClarenceSun 阅读(37) 评论(0) 推荐(0) 编辑

linux常用命令——学习记录

摘要: linux命令 touch创建文件 touch 1.txt 2.txtmkdir创建文件夹 mkdir A/B/C/D -pclear清空屏幕查看命令解释 man ls重定向 > 代表删除后重新写入 >>代表追加写入cat 直接打开文件,不管文件大小cat可以同时查看多个文件 cat 1.txt 2 阅读全文

posted @ 2021-03-14 20:57 ClarenceSun 阅读(75) 评论(0) 推荐(0) 编辑

2020年12月12日

转载-python垃圾回收机制(Garbage collection)

摘要: 原文链接:https://www.cnblogs.com/xiugeng/p/10514101.html#_label0_0 python垃圾回收机制(Garbage collection) 目录 一、引用计数机制 1、引用计数机制优点 2、引用计数机制缺点 二、Garbage collection 阅读全文

posted @ 2020-12-12 20:54 ClarenceSun 阅读(52) 评论(0) 推荐(0) 编辑

2020年9月19日

封装python读取excel内容,xlrd

摘要: # encoding = utf-8 import xlrd class ExcelOperation(object): '''封装excel内容读取方法''' def __init__(self,file_name="测试.xlsx",sheet_id=0): self.file_name = f 阅读全文

posted @ 2020-09-19 19:43 ClarenceSun 阅读(115) 评论(0) 推荐(0) 编辑

2020年7月15日

jmeter压测sql语句配置

摘要: jmeter配置 jdbc:mysql://127.0.0.1:3306/spider_test?useUnicode=true&characterEncoding=UTF-8 阅读全文

posted @ 2020-07-15 22:14 ClarenceSun 阅读(234) 评论(0) 推荐(0) 编辑

2020年6月27日

scrapy爬取数据后存储在本地mysql数据库中

摘要: 话不多说,直接上代码 1 # -*- coding: utf-8 -*- 2 3 # Define your item pipelines here 4 # 5 # Don't forget to add your pipeline to the ITEM_PIPELINES setting 6 # 阅读全文

posted @ 2020-06-27 22:17 ClarenceSun 阅读(228) 评论(0) 推荐(0) 编辑

2020年4月26日

JS+Selenium+excel追加写入,使用python成功爬取京东任何商品~

摘要: 之前一直是requests库做爬虫,这次尝试下使用selenium做爬虫,效率不高,但是却没有限制,文章是分别结合大牛的selenium爬虫以及excel追加写入操作而成,还有待优化,打算爬取更多信息后进行词云分析 ''' 爬取京东商品信息: 请求url: https://www.jd.com/ 提 阅读全文

posted @ 2020-04-26 22:19 ClarenceSun 阅读(296) 评论(0) 推荐(0) 编辑

2020年4月12日

干货!Python中字符串、列表、元祖、字典,集合之间的转换

摘要: 一、字符串的转化 1、字符串转换成列表 字符串转换成list 的时候,str可以作为迭代对象,直接放入;也可以使用split对字符串进行切割。然后返回list 1 s = '1a1b1c' 2 print(list(s)) 3 print(s.split('1')) 1 ['1', 'a', '1' 阅读全文

posted @ 2020-04-12 21:16 ClarenceSun 阅读(366) 评论(0) 推荐(0) 编辑

导航