Joke Collection Website - Cold jokes - What foundations are needed to learn python?
What foundations are needed to learn python?
It’s the same as learning from scratch. After all, scripting language should not be learned using the ideas of C language, although some of the grammar is borrowed from it.
1. Find a suitable introductory book, read it roughly once, cycle, judge, and understand common categories (skip if it is too difficult)
2. Do some simple exercises , string comparison, reading dates, etc. Python Cookbook is good (too difficult and boring, skip it again, maintaining interest is the most important, you can learn it again later)
3. Join Python Discussion group, with a friendly and smiling attitude (very important, so that the experts will patiently correct your wrong common sense). There are many small problems that have been tangled for a long time. The other party can provide you with ideas in one sentence, which really saves you a lot of time. Thank you very much for your patience in teaching me.
4. Solve your own computer problems. For example, when downloading an American TV series, I downloaded 2, 4, 5, and 8 episodes scatteredly, but the US TV series has 12 episodes. How do I find out which episodes are missing? Then the problem is decomposed, 1. Read all downloaded file names, 2. Extract the numbers of the set, 3. Sort the numbers and compare them with (1--12) to find the missing ones.
5. Always remember the purpose, not to be a programmer, but to solve problems. For example, if you want to lazily capture web content, you can’t use urllib or request. Then you find that capturing content involves so many aspects (cookies, headers, SSL, url, javascript, etc.). Of course, you can listen to others’ advice and go back and study hard. , read from the beginning.
Or, instead of looking for efficiency, just looking for a solution, is it okay to open the webpage in IE and save it as? IE has rendered all the results.
The question becomes: 1--Open the specified 10 web pages (one line of code will do). Want to save something more complex? Use existing packages, such as PAM30 (mine is Python3), open IE directly, use the function outHTML to save as text, and then use the search function (str search will also work, re regular will also work) to find the data. Simple right? And the code is super short.
6. Stay interested and use the simplest way to solve the problem. Leave it to the experts to write about the underlying drivers and various exchanges. We use existing packages to complete.
7. Read documents patiently and practice reading documents quickly. When you get a new package and find the functions you need, you need to read it quickly. This is not difficult. If you read the function name, you can probably guess what it does, and then look at the return value to judge whether it is what you need.
8. Write help files and study notes, and publish them for sharing. When you teach others, you are actually thinking about it yourself again.
I think learning programming is like learning English. If you understand the high-frequency words (loops, judgments, commonly used packages, commonly used functions), you can assemble the software you want.
Be sure to stay interested and skip anything that is too complicated, just like primary school mathematics and primary school English, which are all from simple to advanced.
The Internet is very flat. Countless international experts have written good books about Python, algorithms, computers, networks, or programmers’ ideas, or business thinking (Top of the Wave is a good book), etc., and There are online open courses from famous international schools (Chinese and English subtitles are translated, so it is not difficult to watch). They talk about computers, networks, security, or Android systems. They have everything. As long as you can continue to be interested and learn bit by bit, it is not difficult.
All genius programmers were once children and returned to children's thinking to understand and learn. If you find something interesting, learn it first. If you don't understand it, leave it alone. If you encounter problems, you can learn it again. The effect will be better.
The only suggestion is, don’t be too greedy, be patient and learn an elegant language before learning others. Although Javascript is very cool when it comes to special effects, or when asking a certain question, some experts suggest that it would be better to write in Ruby, etc., do not change the direction. It's like the old joke: "To learn recursion, you must first understand recursion." And then the endless loop continues. Keep learning one language well and then study others.
Even if you can learn the parts related to the network, database, etc. of a language well, it will be very fast to learn other languages.
The other thing is, use the same patience as learning English to learn computers. When you encounter words you don’t understand in English, copy them down and look them up.
In Python, when you see Http, look up the definition. When you see outHtml, look up the definition. It’s the same as when you first learned English. Don’t guess the meaning directly, because there is a difference between a precise descriptive definition and a vague natural language. . It is easy for newcomers to misunderstand things if they make blind guesses. Wiki and Google are very useful.
- Previous article:Rats can breed in human uterus.
- Next article:what is love ?
- Related articles
- A sad copy after breaking up with your best friend.
- Western wedding culture
- Ask for a wonderful joke!
- In the Three Kingdoms, when did Shu decline? Guan Yu has a big responsibility because Zhang Fei died, which caused internal discord in Shu and led to the defeat of Yiling.
- What if the girl says I'm busy first and then doesn't reply?
- Talk about the humor of snow.
- What is the antonym of different?
- You really shouldn't write a composition about dad.
- Pang Tong's jokes are dishonest.
- Children’s picture books and main contents