First reading "python basic tutorial" self-learning Python completely does not understand how to be good? "

Source: Internet
Author: User
Never learned programming, reading textbooks read confused, unintelligible, suddenly very frustrated. I do not rely on the IT industry to earn money, but also missed the opportunity of professional training, but do not want to give up the ideals of the past, programming 0 how the foundation should be remedied? Thank you!

Reply content:

I was able to understand the state of the Lord in general by reading the description of the title. Remember I just started to touch programming is at the end of the college entrance exam because of "software engineering" professional admission so in the holiday self-taught java. At that time, the state and the main problem, do not know why the code is how to execute the (remember then also go to Baidu know the execution order of the program statement =_=), do not know why to compile, why the program is written out are black box, double-click Can not run ... Then about half a year is good, how much is accumulated some experience, take out and the main topic share.

method on
If you feel confused, do not consider the "idea" of programming, first to read the code. The code in the book is a gradual progression from less to more. For each of the books (is every OH) routine, to be able to start from beginning to end every word of each of the keywords are understood what the meaning (the book clearly pointed out that do not understand the neglect of). Then close the book and write the code that will enable the same functionality. At the same time, appropriate changes to the code, such as the deletion of a piece, plus a sentence or something, to deepen understanding. Attention, please. do not recite routines。 As long as the function is consistent, mastering the method even if the goal, the back down meaningless, and will not improve. After a period of time, with the deepening of the understanding of the code will gradually naturally understand the "thinking" of writing programs. Feel like after learning English grammar back good words, nature will write the article (of course not written). After the first book, try to complete a small program independently, Snake, Tetris and the like, Python can try to write a text processing of small programs. At this time, the systematic consideration of the idea is a good choice. The basic Python tutorial has a lot of examples behind this book, and it's a good time to write those examples.
In addition, there must be a large number of nouns at the beginning to understand. Encounter do not understand the noun as far as possible on the Internet to check, to know the question can also. Do not accumulate too much, otherwise it is easy to create understanding obstacles. This is also a learning process. Programming is not just code, there are other related knowledge, there are no special book system to explain, need to accumulate.

Understanding on
The idea of writing a program in a beginner's time can be the mind (of course, in the future). For example, dumplings. PY can be written like this:
# Introduce all the tools in the kitchen
Import Kitchen
# before the first three sentences were wrong, accidentally mixed the grammar of other languages in, has been corrected. The Chinese brackets () are the terms.
# Meat 1"Meat 1 is a codename/name used to control/get variables. Just like a remote.
#"method Name (parameter 1, parameter 2, ...)" With a certain input (parameter), through the "method name" represented by a series of
# Operations/Operations (we don't know exactly what this is here). Sometimes it produces a result (the return value), sometimes not.
# Here is some kind of meat. The first sentence can be interpreted as:
# Use a name called "Meat 1" "to represent the meat by" pork "as a" material (parameter) "method.
# stuffing "to get the meat.
Meat 1 = Make meat (pork)
#"xx. yy"can be understood as XX yy, the following is the kitchen seasoning
Seasoning 1 = kitchen. Seasoning
# with the first sentence
Dough 1 = buy dough (Money)

Dumpling skins = make dumpling skins (dough 1)
Raw dumplings = dumplings (dumpling skins, minced meat 1)

#"def method Name (parameter 1, parameter 2, ...):" Defines a sequence of instructions, represented by "method name" to facilitate later
# Direct use does not have to repeat writing. The above-used "do meat" is also defined.
def boiled dumplings (raw dumplings):
# Produce a pot
Pot Pot 1
Cook (Raw dumpling, pot 1)
# This thing represents the code that is indented after repeated execution three times
For times in [1, 2, 3]:
Add water (Pot 1)
Cooked dumplings = out pot (Pot 1)
# return the final result
Return cooked dumplings

cooked dumplings = boiled dumplings (raw dumplings)
# output
Print cooked dumplings
The above is an example of daily life. But some people are less sensitive to this kind of inappropriate metaphor. Add one from a mathematical point of view. In school math class defines the function, and the concept of the function in the program is very close, the specific difference look here ( http://www. zhihu.com/question/2038 5250 )。 The "method" mentioned above is the "function" (synonym) in the program. In mathematics we write this:
f (x, y, z) = X*2+y-z
m = f (x, Y, z)
Writing Python code is
def f (x, Y, z):
Return x*2+y-z

m = f (x, Y, z)
Do you see the difference? I guess this writing in the program is from the mathematics of learning from this point of view, the program can be easily and rudely understood as a special language to describe the operation process. Writing math homework in peace is actually similar. But there are some special statements like "Hello World" "print. The idea is still the same.
It can be seen as a step-to-step approach in the real world. This is called "Process oriented" programming method ^_^. Familiar with the future is actually nothing, but at the beginning there will be some turn the bend. Have a habit of the process.

Finally, Python is a very affinity language, suitable for non-class beginners (of course, Python is also very powerful) ~ "Basic Python Tutorial" This book is still good, compared with similar books is the closest to the 0 basis, you can stick to watch. As for the 0 basics ... The old otaku who write code have been out of the people for too long ... Ghosts know what their 0 base is ...

At first, it is a common phenomenon that there is a dazed and bewildered phenomenon.
Writing a program is a very interesting thing is, I hope the Lord insists on his dream-the most important but a gradual
Python Tutorials-Liaoche's official website
Direct reading is too heavy I think the upstairs is not the key.
The key is that the book the main reading is really not suitable for beginners. How to say, it is actually a beginner looking at the hard, experienced people look at the boring books. Yes, it's a bad book. It is not possible to read completely, it is recommended to learn from the book "Learn Python's hard way", complete 0 basic Learning Python2 building is right. In addition, add a bit of personal opinion. I am not a computer major, on the programming like, the school to teach C when using the Rectification C language Foundation, beginners feel extremely boring, feel very simple, and no use, until the end of the teacher to decorate a small project to do when the original learning things can be used. Enlightened.

Then self-study Java, I use the Android development tutorial to learn, feel very good, in the later met Robocode, electric donkey on the download, feel this side doing the experience of the project is very useful for programming. Learning a language is the best thing to do while doing a project.

In addition, I am also learning python, but, junior, extracurricular time is not many, feeling progress is very slow. Here is a lovely Python book, inside through the application needs to learn, feel very good. This book is not very suitable for 0 basic friends, suggest you look at
Think of Python like a computer scientist
Python Programming practices
Python Core Programming (2nd edition)

Learn programming, not only grammar, need to learn programming ideas, to learn how to solve the problem.
Otherwise it will appear that the book can be read, but you cannot write code to solve the problem.

Please look at the article written by Huanggo himself.
How to break the layer of Python-programmed paper
Article/pythonstudy.md at Master Pythonpeixun/article GitHub

Scissors stone cloth Small exercise three languages python2, PHP, go code
Article/jdstb.md at Master Pythonpeixun/article GitHub
A small code description of the use of the @property adorner
A small code description of the use of the @property adorner


How to break the two layers of paper that python programmed
How to break the two layers of paper that python programmed

How to pierce the three layers of paper that python programmed
How to pierce the three layers of paper that python programmed



Huanggo Python Remote Video training course
Article/index.md at Master Pythonpeixun/article GitHub

Huanggo Python training preview video playback address
Article/python_shiping.md at Master Pythonpeixun/article GitHub

Come on! Communication is the kingly way.
The best way to learn from the beginning is to find a meeting person, pester him, ask him what books he should read, and ask him if he doesn't understand.
Otherwise, you just find a textbook that everyone else has agreed on, and still inevitably encounter problems that are difficult to solve.
The direct communication effect between people is absolutely stronger than reading, watching video and other one-way learning.
You are welcome to come to our classroom to learn together.
/ http crossin.me
: Crossincode
QQ Group: 2959218160 basic words, is to endure a period of time. Our computer's big moment many 0 basic students are also foggy.
It is recommended to first read a computer introduction, the main understanding of the CPU and memory relationship, von Neumann structure, 2 binary and the system conversion bar.
Then, the individual feels that Java is more appropriate as the first language, because the content of the design hardware is less. Special Recommendation "Head first Java", interesting and easy to understand.
About textbooks, the domestic computer textbooks are not very good, obscure language and outdated ideas. The first English version of the textbook, computer or English is the most accurate. Translation is also good, but professional vocabulary often wrong translation. The domestic textbooks, especially the university professors write the most, but also has the advantage, is the basic teaching material involves hardware content and a lot of examination of the partial door point are speak thoroughly.
Finally say a learning experience, a book can not understand, should find the same content of other authors of the book comparison. It's easier to see how different people are expressing the same problem.
I wish you a smooth study. 0 Basics is not recommended for basic Python tutorials. The grammar of the inside of the quick on the novice more difficult to recommend the first with the children to learn programming. Basic Python tutorial You should take a look at the preface should be a beginner to the basics of programming python
Maybe the book is wrong.
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.