Because it takes , So I'm probably 19 year 5 Start to learn... In June python, I've probably learned 1 After a month , I can do the work of the company , And this python The project also includes machine learning and other elements , Probably 3 After a month , I also undertook the task of developing machine learning data analysis in the project . So I feel , although python There are reptiles in it 、 Hot elements like machine learning and data analysis , but python It's not hard to learn , And if it's done right , The level of learning competent projects is also very fast . In this article , Just tell me how to learn Python The process of , Show you how to learn effectively python.

1  Build development environment

Because I have to learn java The basis of , So I know that the first step is to build a development environment , I was using eclipse+Python Interpreter +pydev Plug in environment , I was still using 3.4 Interpreter , Now, of course, the interpreter seems to arrive at 3.9 了 , I also use Pycharm Integrated development environment .

If you want to learn now python, The following steps are recommended to build the environment .

1.  Download it on the official website python Interpreter , And install

This is the official website ,, Here you can choose the latest version , And according to the operating system of your machine , download windows or linux or mac Version of , I downloaded it windows edition . After downloading, press the prompt to complete the installation .

python It's interpreted language , So after downloading and installing the interpreter , You can run it locally python The language .

2.  install pycharm Integrated development environment

Install well python After the interpreter , In theory, you can use the command line , Develop and run python Procedure . But it's inconvenient , So I suggest that we go to This website to download and install pycharm Integrated development environment .

3.  Install third party package

When the installation is good python After interpreter , The interpreter comes with some basic dependency packages , But if you want to develop machine learning or data analysis programs , You need to install a third-party package , For example, as mentioned later numpy etc. .

The way I install third-party packages is , In the command window , adopt cd Wait for the order , Enter into Python The path where the interpreter is located , such as C:\Users\think\AppData\Local\Programs\Python\Python37, In this path , Enter again Scripts route , find pip3 command , Subsequently passed pip3 install The way the package name is , Install third party package , For example, to install numpy package , The corresponding order is pip3 install numpy.

So far, the development environment has been set up .

2  The pitfalls in building a development environment

I've come across two pitfalls in building a development environment , The first is to change the source , The second is in pycharm Find the corresponding interpreter in .

    What's a change of source ?

In use pip3 install numpy Wait for the command to install the third-party library , The default seems to be to download from foreign websites , In this way, if you encounter a big bag , And when the network is bad , It's going to be difficult to download , So you can use the following -i Parameters , Specify the source to download the third party report .

pip3 install -i virtualen

here -i After the parameter It's Tsinghua source , and virtualen The third party package to be downloaded , So that you can download and install third-party packages in a faster way .

stay pycharm The interpreter is defined in

I've been working on this for a long time , Later, I took my classmates to the training class python when , I find that beginners often make mistakes here .

We know ,pycharm Will bring it python Interpreter .

But this version of the interpreter may not be what we expected , So we're going to install other interpreters . That's the problem , The installed third-party package follows the interpreter .

Let's say we have pycharm Self contained 3.8 There are several third-party packages installed in the interpreter , But if you switch to your own 3.9python In the interpreter , These third-party packages will all change .

For example, when we switch the interpreter , Found that the third party package has changed .

So when installing third-party packages , You have to pay attention to , To select the interpreter , such as 3.9 In the directory of this interpreter , Run the pip3 command , This allows you to install packages for specific interpreters .

3  Get familiar with grammar by typing code

Python The introductory books are almost the same , I was using this . There are not many introductory books , Run through the grammar code in a book .

Python The basic grammar of English includes : Branch loop , aggregate ( Lists, dictionaries, tuples, etc ), object-oriented ( Classes and inheritance, etc ), File read and write and exception handling , These grammar points , Run through , You can basically understand , At the beginning of learning , Don't go into it too much .

If you think your programming foundation is average , You can find another book , Like this one . But you don't have to look at the basic grammar , Running two books of code is enough . because Python The focus of the project is data analysis 、 Crawlers and machine learning and so on .

4  Learn data analysis three swordsman components

My project is to use Python Quantitative analysis of stocks , But I observed , No use Python What kind of application to do , Data analysis three swordsmen , such as Numpy,Pandas and Matplotlib These three libraries , Generally, we have to master .

I was reading this , It contains the grammar and application of the three swordsmen , I usually read a book , And then run it according to the code inside , Data analysis , It should be able to work as well .

5  Study Scrapy The crawler frame

My project doesn't include crawlers , But then I took a private job , Recording for a school python Crawler video . So I used 2 weeks , Bought the book , I ran according to the cases in it , You know Scrapy Details of the reptile .

learn Scrapy The main points of the framework are as follows .

  • Scrapy Third party is more difficult to build , You need to pack other bags in advance , It is suggested to use python3.8 and 3.9 Based on the interpreter , Set up the environment .
  • It is recommended to download the package locally , Install it locally .

But if you do build it Scrapy The environment , Do as the book says , Basically, there won't be any big problems .

6  Case based machine learning sklearn library

Machine learning , I was reading this book , There's machine learning , It's also useful sklearn We do linear regression and SVM Analysis of the case .

My experience is : Although the algorithm of machine learning is more complex , But it's basically encapsulated in sklearn It's in the library , in other words , stay python All you need to do is call the method , Pass in the correct parameters , The machine learning algorithm can be used in the project .

7  Learn from stock quantification cases python Data analysis

In previous books , There are more comprehensive cases of integrating machine learning and data analysis , It can also be used synthetically numpy+pandas+matplotlib+sklearn library , But my project is about financial quantification , So I bought this book again , Integrate learning data analysis with quantitative cases .

8  inductive : I learned python My experience

I feel like I'm learning python Our efficiency is still high , Here is to summarize my learning experience .

  • Learning must have a purpose , For example, use python Looking for a job , It's going to be used in the project python, Or use python To pick up private work , If you don't have a purpose, don't learn .
  • Video learning is not recommended at the beginning , It's about buying books and learning , Because the knowledge points in the book are more systematic , And the code in the book makes sure it works .
  • Don't just read , Be sure to run the code while mastering the skills .

In the same way , You will be familiar with in a month python.

9  summary : I learned python Cost and benefit of

    The cost of money

I used to buy books about 400 element

    Time cost

A month's evenings and weekends , The others run without doing anything python, You can get familiar with python grammar + Data analysis , Plus a month , I am familiar with machine learning grammar .

    earnings :

I can do projects at work , Earn a salary .

Two books came out later , The remuneration is about 2 ten thousand 5 about

I can give lectures , This piece of money is OK .

Made a python Reptile private work , Earned 1 More than ten thousand .

But I feel , because python Including hot topics such as deep learning , So programmers should really find a goal first , Like job hopping , And then learn python. According to the process I give in this article , You should also be able to learn how to work quickly .

    Please pay attention to my official account : Progress together , Make money together , In the official account , There will be many wonderful articles .

From my own experience , Talk about learning python The process of , Also recommend learning python More related articles about the book

  1. SAE Python Use experience Good article recommends

    SAE Python Use experience Good article recommends SAE Python Use experience Good article recommends

  2. What I have personally experienced CMMI3 [ Question points :20 branch , Tie tie person outer2000]-- Reprint

    It is my pleasure to , As a software project manager of a company's software department , I experienced it myself CMMI3, Here is the whole improvement process , With my own experience , Details are as follows , Some of the views in this article are inevitably personal , Please refer to . Here is a brief introduction to the company , Because it's for someone ...

  3. Simple learning Python Chapter two __ Learn data structure and file operation skillfully

    #cnblogs_post_body h2 { background: linear-gradient(to bottom, #18c0ff 0%,#0c7eff 100%); color: #fff ...

  4. 5 month 25 School begins on ! The first 13 period 《python3 automated testing selenium+ Interface 》 Course ,python You can learn from nothing

    2019 year The first 13 period <python3 automated testing selenium+ Interface > Course ,5 month 25 School begins on ! Lecturer : Shanghai - long The way of class :QQ Group video online teaching This class time :5 month 25 Number -7 month 28 Number , Once a week ...

  5. utilize Python Web crawler crawls ten titles of the school's official website

    utilize Python Web crawler crawls ten titles of the school's official website Case code : # __author : "J" # date : 2018-03-06 # Import the required library files import urll ...

  6. Recommended by Pan Shiyi, a real estate tycoon Python Programming , This book starts with 0 To 1 That's enough

    Pan Shiyi's recommendation Python Programming , Many people don't believe , His micro blog is real . Even real estate began to learn Python 了 , Because to understand machines , Let the machine work for me . No more learning Python It's really late !!!! How to learn ? How to learn ? Still recommend high ...

  7. Python Learning course zero basic learning Python

    python Study the course , Zero basis Python How beginners should learn Python Language programming ?python Learn about the learning route here . Want to python Study the course ? Learning route network free download massive python course , Office workers can also learn by themselves at home ...

  8. Want to learn Python I don't know where to start ?| Baidu disk free download | Learn about this introductory book

    Baidu disk free download : The first book of programming Xiaobai Python Introductory book Extraction code :s0pc Python What is it? Python Is a computer programming language , By Guido · Created by van Rossum , The first edition was published in 1991 year , It can be seen as an improved ...

  9. If you don't really like learning technology , Who will use Python Little sister

    Develop habits , Praise first and then watch !!! Not for any commercial value , Just for fun . otherwise   The reptiles are good , I'm fed up . This is the website we crawled this time : Many people study python, I don't know where to start ...

  10. 【 Learn step by step Python】5.Python Common process control and other statements

    1. Common skills of assignment statement Unpacking by sequence (sequence unpacking) You can unravel a sequence of multiple values , Let the last one be placed in the sequence of variables . The number of elements in the unpacked sequence must be the same as the number of variables on the left side of the equal sign . as follows : values = ...

Random recommendation

  1. Android Prevent multiple click events

    I'm afraid everyone will encounter such problems , One click event triggers many times , Lead to , The same content has been submitted many times , Or pop up multiple pages ... Here's a simple solution , You can try The principle is simple , When we first clicked , Make the button non clickable . ...

  2. Split Array Largest Sum

    Given an array which consists of non-negative integers and an integer m, you can split the array int ...

  3. [Core Javascirpt] Basic Metaprogramming: Dynamic Method

    Somehow it looks like reflect in Java. For example: We define an mothod on the Object, it called def ...

  4. GSM Hacking: How to GSM/GPRS Network testing, testing

    Write it at the front What we need to introduce here is GSM / GPRS Some methods of network testing , With the widespread existence of network connection of hardware devices , For example, smart meters . Automatic transmission control unit (TCU).POS machine . Alarm system, etc . These devices usually need to be connected to the network ,GS ...

  5. linux Next cut catalina.out file , Generate files by day

    1. Download tool cronolog Compressed package ( 2. Drag and drop the file onto server, Any folder can . 3. Into the ...

  6. Unable to load configuration. - bean - jar: ....struts2-core-!/struts-default.xml:47:178

    Extracted exception code : 2013-12-14 22:42:07 com.opensymphony.xwork2.util.logging.commons.CommonsLogger error serious : Dis ...

  7. animate How to solve the problem that the animation is locked in the queue

    [ Example ]: function scroll_to(obj){            $('html,body').animate({scrollTop:obj.position().top},700) ...

  8. Asynchronous task spring @Async Annotation source code analysis

    1. Introduction Open asynchronous task usage : 1). Method plus @Async annotation 2). Start class or configuration class @EnableAsync 2. The source code parsing although spring5 It's already out , But we still use spring4, This article is about ...

  9. PhotoShop No magic wand 、 Pen Establish a more level constituency P Into the computer screen

    No magic wand . Draw out . Pens, etc , You can also directly deform the graph to create an adjustment selection , This method is easier than drawing out a pen , Be more careful than the magic wand . Draw out or pen : It's wrong to pull out, it's offset, it's going to erase , Adjust the brush , There may be burrs after extraction , You need to erase it with a rubber : Pen , In the wrong ...

  10. BSOJ 5603 -- 【SNOI2017】 bomb

    Good data series , More than ten lines of immortals on the Internet A I've got the original data . This problem uses the knowledge of optimizing the number of line segments . However, when I got this question in the exam, I couldn't . Let's say which bomb is farthest to the left and right of each bomb . It's easy to come up with an idea , It's every bomb ...