Machine learning - extraction of eigenvalues ​​

... characterization value for better understanding of data for computers # import package From sklearn.feature_extraction.text import CountVectorizer # Instantiate CountVectorizer Vector = CountVectorizer() # call fit_transform input and convert data Res = vector.fit_transform(["life is...


Xiao Bai's simple implementation of TurtleWorld in Python 3.0 in Python 3.0 (test version Python3.6, test environment Anaconda)

... PS: I am a little white, just started self-study, first focus on use, then from shallow to deep Among them, there are some unrecognized and typos at this stage, I hope the seniors pointed out the amendment:) 转载 Please also indicate the source oh~ 1. The root cause of the instructions...


Ubuntu replaces the default python version

... Step 1: Set the python version sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 100 sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 150 Step 2: Switch the python version, sudo update-alternatives --config python Follow the prompts to...


Django "GET /static/favicon.png HTTP/1.1" 404 1657

... 解Django Server - Chrome Request favicon.ico 404 Problem 文件结构 My file structure is done by the official Tutorial Polls mysite/ $ tree -L 2 . ├── db.sqlite3 ├── manage.py ├── mysite │ ├── __init__.py │ ├── __pycache__ │ ├── settings.py │ ├── urls.py │ └── wsgi.py ├── polls │ ├── admin.py ...


Sword refers to offer: interview question 57

... 访题57: Delete duplicate nodes in the linked list: we need to set a pointer preNode, preNode is initially None, then set two pointers, pNode points to the current node, pNext points to pNode Next node: If pNext is not empty and the value of pNext is equal to the value of pNode, then it...


How to call another function code in a python code

... [time]2018.09.30 [Title] How to call another function code in a python code Overview When writing code, usually, we need to call the function of another file in one file, etc. In general, we need to manipulate the code in other files in python, different code files are equivalent to one...


The most complete Python data type in history.

... Data type is the essential basic knowledge of each programming language. It is also a skill that must be mastered. Many people have simple knowledge to understand, and there is no systematic knowledge. The following is a detailed summary of all the data types of the python language:...


Python technology learning Django framework design ideas

... Python is currently a popular computer programming language, based on a rich and powerful library, known as glue language, can easily connect various modules made in other languages Together. Python is powerful and versatile, and can be widely used in cloud computing, web development,...


Windows+phpstudy(apache) Support python

... in cgi mode. The author uses phpstudy (Apache) + windos. At first, I don't understand the meaning of Apache configuration (there are many configuration articles on the Internet), which leads to the configuration. Wrong, special summary. Apache Configuration Find DocumentRoot in httpd...


17 school recruits Zhenti title set (3) 11-15

... Note: This series of topics are all arranged according to the descending order of pass rate, and the basic guarantees the difficulty of the topic. 11、 题名:Buy Apple 源:网易 题描述 小易 Go to the nearby store to buy Apple, the treacherous trader used the bundled deal, only offered 6 bags per bag...