Programming 0 Basics How to learn Python
If you are 0 basic, note is 0 basic, want to get started programming, I recommend you learn Python. Although the country is basically a C language as an introductory instruction, but at MIT and other foreign universities are using Python as a programming primer teaching.
So how do you learn python?
First step: grind the knife First.
As the saying goes, ax, this you have to believe, anyway i believe. So how to sharpen it? first, Baidu python, have a general understanding of python, and then go to the official website to download a python, You'd better Download the Python2.7 version first, learn the last to see the Python3 version, which conforms to the development of Python law, do not ask me why, this is personal experience, of course, you can not listen, this problem is not too big, but I personally think it will be good for you. If you encounter problems in the process of installation, please Baidu search, this baidu, I am sure you will find the answer, I believe You. The above is installed under the Windows operating System.
Note: If you are local tyrants, use apple, congratulations, Apple has built-in python, no need to install, if you are using a Linux system, congratulations, Linux also built-in Python.
Step two: Write a Hello World first, try A
Find the Python installation directory and see a python.exe file, double-click with the Mouse. If you see a black window, enter print ("hello world!"), and then press Enter. If it goes well, you will see the window as Shown.
The third step: learn how Python works
Don't be afraid, the principle I can tell you in simple language, you do not need to go north-west to Find. We can take that python.exe as a translator (interpreter), when we enter print ("hello world"), The translator will interpret our input to the operating system, and then the operating system will understand that it is to output Hello world to the screen, in fact, it is so simple.
Fourth Step: Learn how to run a well-written script file
Immediately after the previous step, please turn off the black window, and then open again, you will find that you have entered before the things are not, how to do? What if I want to save the previous input? Don't worry, i'll help you.
now, Please use a notepad, create a plain text file, save to hello.py, please put this hello.py in the C packing directory.
then, Open the cmd window (do not know what is cmd?). Baidu a bit you know, is it), in the window input Python c:\hello.py, if smooth, you will see a similar look.
Fifth step: Follow the Getting Started tutorial and start learning Python step-by-step
It is recommended that you start with the Python concise tutorial and don't know where to download it. baidu, you know
Sixth: ask the teacher to teach you advanced Python skills
If you can walk through the introductory tutorial alone, congratulations, you have entered the Python Gate. If you want to work with Python skills, it's not enough to get started, so ask a teacher to teach you advanced Python skills.
Good luck!
0 Basics How to get started with Python