Lipsky

Lipsky

Let me try

The method of get() in Requests lib
The method of get( ) in Requests lib#requests.get(url, params = None, **kwargs) url : the link of the pages params: the extra params in the url, such as dict, optional **kwargs: there are 12 params. The properties of Response Object let r = requests.get(‘’https:///www.baidu.com‘’) There are...
Basic Matrix knowledge
The property of Matrix 矩阵性质#\begin{bmatrix}a&b&c\\\\d&e&f\end{bmatrix}{A}\times{B} \neq {B}\times{A}{E}\times{A}={A}\times{E}(E is a constant 如果E为常数) {A}\times{({B}\times{C})}={({A}\times{B})}\times{C} summary(总结): The all multiplication rules are true when E is a constatnt matrix except commu...
Numpy generate array
Create array#12345a = np.array([[1,2,3,4],[5,6,7,8]])print(a)'''array([[1, 2, 3, 4], [5, 6, 7, 8]])''' ndarray.ndim: show the dimensionality of array 12a.ndim# 2 ndarray.shape: show the length of array in every direction 12a.shape# (2,4) ndarray.size: show the size of array(the value =...
Parse web pages using CSS class by BeautifulSoup
Parse web pages using CSS by BeautifulSoup# This essay refer to BeautifulSoup 解析网页: CSS Get the content using CSS class#In ther source pages of web writing by html, it uses CSS to decorate the web. We can use the different class of CSS and the tag in it to get the content that we want. Demo 12...
Regular Expression
正则表达式(Regular Expression)# 正则是一种用来匹配字符串的的工具🔧,简称RegEx,在大量的字符串中寻找出所需要的字符。e.g. 在网络爬虫中寻找出需要的关键字、关键内容;在进行数据筛选时使用。 简单匹配#简单的匹配类型规则:# \d 可以匹配一个数字,\w 可以匹配一个字母或者数字: ‘00\d’ 可以匹配 ‘007’ 但无法匹配 ‘00A’; ‘\d\d\d’ 可以匹配’010’; ‘\w\w\d’ 可以匹配 ‘py3’; . 是可以匹配任意字符的,有: ‘py.’ 可以匹配 ‘pyc’; ‘pya’; ‘pyb’ …… 要匹配的长度在正则...
Sets & Dictionaries
sets# Python also includes a data type forsets. A set is an unordered collection with no duplicate elements. Basic uses include membership testing and eliminating duplicate entries. Set objects also support mathematical operations like union, intersection, difference, and symmetric difference. 1...
Character string and Data type
Character String e.g.:#1234567891011121314151617>>> str1 = 'abcdefg'>>> str1[2]'c'>>> str1[1]'b'>>> str1[-0] #the first one'a'>>> str1[-1] #the last one'g'>>> str1[1:4] #from the second to the fifth, but not contain the fifth'bcd'>>&g...
Requests' details of Python
The methods of Requests# requests.* details requests.request() Construct a request to support the following basel methods requests.get(url,params=None,**kwargs) url: links; params: url中的额外参数,字典或者字节流格式,可选; **kwargs: 12个控制访问的参数,可选; requests.head() get the head info of HTML, to HTTP’s HEA...
Keep calm and carry on.
I have a dream!#This is not the first time when I was confused. The too big confusion#How can I balance the time between studying major knowledge and my truly beloved thing? The first thing that I just want to learn as soon as possible is Data analyst using python. I also acknowledge that skill...
Virtual Environment For Different Projects
The virtualenv# First, install virtualenv on linux 1$sudo apt-get install virtualenv Second, create a virtualenv 1$sudo virtualenv youenvname Then, activating an environment 12$cd youenvname$source ./bin/activate Deactivaing an environment 1$deactivate Using conda to create an environment# F...
我们一起数月亮,看星星。
今天要了解的一个人,是埃隆·马克思(Elon Musk)在了解他之前,我们先要了解一下当下的自己 很小很小的时候的我们都喜欢看星星#一个有意思的现象就是,大部分人越长大就越对周围的事物缺乏了好奇心,小时候,一个星星能琢磨一晚上,看到一个虫子都会小心翼翼的去观察,看到一只蚂蚁都要跟着它走好远好远。 我们越长大,收获了越多,与此同时,我们失去的是一些永远纯真纯粹的梦境般的好奇心,还有想象力。陪伴我们增长的除了对这个世界的理解,还有烦恼和忧愁,不开心。 但我们不是要批判什么,埋怨什么#不要批判,也不要埋怨。我们失去了好奇心,失去了想象力,失去了一些我们做认为的原本美好的纯粹的东西。这无可厚非,...
The usage of git
Install# Linux check whether exist a version of git 1$git Debain/Utuntu linux 1sudo apt-get install git Mac OS install by homebrew view windows skip After installed, run in terminal:#12$git config --global user.name "Your name"$git config --global user.email "[email protected]
悲伤的选择和快乐的轶事
就我所知道的选择#人的选择有很多种,就我所理解的,人处于一个现实的生活中,每天都要做很多选择,除非这一天大多数时间用来睡觉。要做的选择比如说,我要选择跟谁相处,自己或是他人;要选择说什么样的话;还要选择跟谁去吃饭;还要选择是否接受他人的邀请。以及一些不受自己控制而来的负面亦或正面的对自己的影响。甚至,还得选择是否跟人一起去洗手间,一起去洗澡。最重要的是,自己发现有些选择是非常苦恼的,而自己又不得不做出一种令自己厌恶烦躁错误选择。只是因为,自己处于一个不得不的群体中。 人必然是群体动物,时时刻刻都离不开群体的生活。但,我曾想,或者说,历史上的名人轶事,那些世外桃源般,与世隔绝,尽量避免与...
How to persist to do something we always want to do.
The first—Use Python for Data Analysis.# When the first time I heard Python was that moment,which I was learning a course of Basic principles of computer. Exactly it’s the teacher of the course that told us how powerful Python is. Also he recommended us to learn and us it as soon as quickly.To b...
当我们要开始一件事情的时候,是为什么?
为什么?# 我经常向自己问许多为什么,从这样的提问里产生怀疑,怀疑一切。 ​ ——杜尚 有一点就是没有为什么。 我们总是好奇的,从一开始,从一出生就是这样,我们问天上的星星,问翔游的<。)#)))≦鱼儿。 婴儿从一出生开始就是带着好奇的眼睛,不光是婴儿,万物都是这样,当一开始,最初的时候,对于一切都是未知的,对于一切都是敏感的,想要去了解,迫不及待的想要去尝试。新就是开始的原因,没有为什么。 多巴胺(Dopamine):# 多巴多巴胺是一种用来帮助细胞传送脉冲的化学物质...
Restart
新的开始# 安逸区的结束人总会来到那么一天,当从安逸区跳跃出来时,总会发现外面的世界是精彩的。 新学期的开始新的一年,只有每天都是新的和有蓬松泥土气般,才算新。 好的习惯当想要养成一个好的习惯的时候,总要开始坚持些什么。 A Restart To Myself.#
avatar
Lipsky
Let me try
FRIENDS
Mr-houzi