In this paper , We will introduce how to learn effectively Python . You should know 「 Data Science 」 It's used to solve 、 The science of exploring problems and extracting valuable information from data .
To do this effectively , You need to organize the data set 、 Training machine learning models 、 Visualization results, etc .
in fact , From the perspective of employment demand growth , Forbes put it Top ten technical skills . Today, let's discuss why ……
Python It is one of the most widely used languages in the world , It has a passionate user community :
It has a more loyal following in the data science profession .
Some people pass 「 Hello , The world !」 To judge the quality of the programming language . By this standard ,Python Can do very well :
print( "hello, world!" )
For comparison , Here is Java Same output in :
public class Main {
public static void main(String[] args) {
System.out.println("hello, world!");
}
}
ok , No kidding , Simple yes Python One of the biggest advantages of . Because of its precise and efficient Syntax ,Python You can do the same thing with less code than other languages . This makes the speed of implementing the solution refreshing .
Besides ,Python red-blooded Data science community This means that you will be able to find a large number of tutorials 、 Code snippets and fixing common errors . Stackoverflow take Be one of your best friends .
Last ,Python Have for data analysis and machine learning All star library ( It's also called a bag ) squad , This greatly reduces the time required to produce results . These will be described in detail later .
How to learn effectively Python ?
Before we discuss what you need to learn , Let's discuss what you don't need .
Most data scientists never deal with things like memory leaks 、 Cryptography or 「Big O」 Symbols and so on . As long as you can use Python or R And so on 、 Logical code , That's all right. .
You don't need complete Python Course .Python Not synonymous with data science .
contrary , Focus on mastering intuition , Examples of how a function fits or how a conditional statement works . Search on Google 、 After reading the documentation and good practices , You will gradually learn grammar .
We advocate a top-down approach , The goal is to get results first , Then consolidate the concept over time . in fact , We prefer to give up 「 Classroom 」 Study , Turn to practice in the real world .
This method allows you to have more fun while quickly mastering .
adopt Anaconda install Python
Install... On your computer Python There are many ways , But we recommend Anaconda Bundles bundle Bundle , It contains libraries for data science .
Effective programming is not about remembering grammar , It's about mastering a new way of thinking .
therefore , Take the time to lay a solid foundation for core programming concepts . These will help you translate the solutions in your mind into the instructions of your computer .
If you are a beginner in programming ....... We recommend excellent ‘ Automate the Boring Stuff with Python’ A Book , The book has been published online for free under the Creative Commons license .
This book promises 「 Provide practical programming for beginners 」, And let every class be down-to-earth .
If you need this book , Please click the link below :
https://docs.qq.com/doc/DU09haUR2TnFOU0J0
You should be able to answer the following questions :
• Integers 、 What is the difference between floating point numbers and strings ?
• How to use Python As a calculator ?
• What is? for loop ? When do I write a ?
• What is the basic structure of a function ?
• How to use conditional statements (if...else...) To add logic ?
• How import statements work ?
If you want to practice more core programming concepts , Please check out the following resources .
• Code Fights yes A platform , There are many short coding challenges , Can be in 5 Done in minutes ( Although it is very interesting , You may find yourself playing for hours at a time ). You will earn points in the process And unlock the new level , This is also a good way to track your progress .
• Python Challenge Is one of the coolest puzzles on the Internet , So don't let it 1990 The figures of the year frighten . You can Python Complete all with the help of scripts 33 A level . One user called it 「 An addictive learning Python Details of the way ……」 I agree with !
• PracticePython.org yes Python A collection of short exercises in . It updates a new question almost every week . The really good thing is that the author includes solutions submitted by multiple users for each problem , So you can see alternative solutions to them .
• How to Think Like a Computer Scientist It's a great interactive online book , It passes through key programming concepts ( Use Python) Conducted a A whirlwind tour . If you are completely new to programming , This may be a good choice . It's like a condensed 「CS 101」 Course .
You may be ......
Pupils who want to learn programming , The middle school students who take part in the computer competition , College students majoring in computer science , People who are engaged in software development , They are all very suitable !
1、 In each chapter, there are “ use one's hands ” link , You can find application examples in the link
2、 At the end of each chapter “ practice ” link , You can find synchronous exercises in this link
The book totals 16 Chapter , As follows .
The first 1 Chapter introduction Python The history and characteristics of , And build the development environment .
The first 2~5 Chapter introduction Python Basic knowledge of , Including data types 、 expression 、 Process control, etc .
The first 6~7 Chapter introduction Python Common container type data and string data .
The first 8~11 Chapter introduction Python Advanced content of , Include function 、 Classes and objects 、 exception handling 、 Common built-in modules, etc .
The first 12~16 Chapter introduction Python How to use the utility library , Including file reading and writing 、 Graphical user interface 、 Network communication 、 Database access and multithreading .
If you need this book , Please click the link below :
https://docs.qq.com/doc/DU09haUR2TnFOU0J0
Let's do it ! Begin to learn !!
There are better suggestions and learning methods that can be discussed in the comment area ~