Python management under CentOS
Upgrade Python
View system version
cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)
View Python version
python -V
Python 2.7.5
Installing Python 3
Install all development kits
yum groupinstall "Development tools" -y
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel -y
Download the latest python install ...
Posted by Kaizard on Wed, 01 Apr 2020 09:39:57 +0200
Data visualization of Python learning
Common Python packages
Matplotlib
Seaborn
Pandas
Bokeh
Plotly
Vispy
Vega
gaga-lite
Matplotlib visualization
Matplotlib installation
pip install matplotlib-i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
If you fail, try this:
Update pip first and install matplotlib
python -m pip ins ...
Posted by swimmerphil1 on Wed, 19 Feb 2020 16:04:51 +0100
python django project creation steps
There are many different Web frameworks under Python. The common ones are Django, Flask,Torand,. Django is the most representative of the heavyweight players. Many successful websites and apps are based on Django. Django adopts the framework mode of MVC, namely model M, view V and controller C.
1, P ...
Posted by Kookedoh on Tue, 18 Feb 2020 12:59:24 +0100
Automatically clip Android ICON and save to path script
When packaging Android games or apps, you often encounter problems with dozens or hundreds of channels.app names for different channels are different, and icons may be different.Programmers are always lazy and bother to change things manually.So a script was written in Python to automatically clip icons of different sizes and s ...
Posted by CybJunior on Thu, 06 Feb 2020 17:19:54 +0100
Crawler - Data Crawling - xpath Parser
Xpath
Preparatory knowledge
HTML DOM model example
The HTML DOM defines a standard way to access and manipulate HTML documents, representing them in a tree structure.
How to parse the crawler data?
1. Locate nodes in html documents
2. Extract the properties of the specified node, such as href,cla ...
Posted by eddjc on Thu, 30 Jan 2020 02:18:49 +0100
Crawling exercise - crawling the dynamic information of users in the simplified Book Web (dealing with AJAX)
Preface:
In response to AJAX dynamic loading, users' dynamic information of Jianshu network should be crawled, and the crawled data should be stored in MongoDB database
In order to sort out the code, sort out the ideas and verify the validity of the code -- January 21, 2020
Environmental Science:
Py ...
Posted by effigy on Tue, 21 Jan 2020 18:48:08 +0100
Data competition model fusion
sklearn cross validation
K-fold cross validation:
sklearn.model_selection.KFold(n_splits=3, shuffle=False, random_state=None)
Idea: the training / test data set is divided into n ﹣ splits mutually exclusive subsets, one of which is used as the verification set each time, and the remaining N ﹣ splits ...
Posted by Axeia on Sun, 19 Jan 2020 15:27:13 +0100
Sklearn of Python
1. Introduction to sklearn
Scikit learn (sklearn) is a common third-party module in machine learning. It encapsulates common machine learning methods, including regression, dimension reduction, classification, clustering and other methods. When we face the problem of machine learning, we can choose the ...
Posted by roldahayes on Sun, 19 Jan 2020 14:03:08 +0100
Reading yaml file with linux shell
1, Installing python3.7.0 on Linux
centos 6 / 7, the default installation of centos system is python2. X (in fact, I'm centos 6.5, and centos default installation of python2.6.6). Version x is different according to different versions of the system. You can view the python version of the system throug ...
Posted by techcone on Thu, 16 Jan 2020 06:30:04 +0100
[Python3 Crawler] Crawl records of JS-encrypted data at once
1. Preface
This is a record of cracking JS encrypted data on a website at:
https://www.qimingpian.cn/finosda/event/einvestment
To get the investment event information on this page, you can first confirm that the data is transmitted through AJax, not written directly in the source code of the web page.
2. Steps
1. Grab a bag
Open the develop ...
Posted by k4pil on Thu, 16 Jan 2020 03:39:27 +0100