First, Newcomers:
First of all thank you can come to see my blog, because the first blog, no experience, so there are bad places please point out that, of course, first of all, must do a little self-introduction, I was just graduated this year students, in college, because at that time, see seniors learn elder sister find work, all said Java comparison Fire, The demand is big, so self-taught Java, in Java Learning, spent a full two years, and now is going to be a job. As a programmer, it must be known that only one language is not enough, so make up your mind to learn python in your spare time and use it as your second language to enrich yourself and improve your skills.
Ii. Understanding Python:
1. Since Python is the second language of its own, it is certain to have a certain understanding of python, to learn what it can be used for, the nature of the language, and its advantages and disadvantages.
As if from the first two years, Python has become very hot, but then just know that it is more fire, but do not know what it is a thing, then the heart has been in the comfort of their own, Java is the world's most powerful language, learn Python hair with no, learn Java is invincible, It was only later that the Python language was so beautiful. In the next few years, which language will be more and more fire, this can not really guess, but the future of artificial intelligence, big data These are sure to be more and more fire, then there will be a lot of data need us to deal with, and Python to the data processing has a great advantage, so, I'm sure Python will be getting more and more hot in the future, at least for now, Python is quite a fire.
Python is a dynamic interpretation of the strong type of language, haha, so a lot of people will be ignorant, tmd you so tell me, how do I know what is dynamic strong type, what is the explanatory language, do not hurry, down I will give everyone to introduce:
Dynamic type language: It is the language of type checking at run time, saying that the popular point is writing code can not specify the variable data type, Python is like this, such as the definition of a string type of variable can be written---------------name= "Ssxx" , while Java must precede the string name= "ssxx";
Static type language: Its data type is to be checked by the compiler, that is, the variable is declared before declaring the data type of the variable, the benefit is to put type check in the compiler, check the possible types of errors in advance, the typical Representative is C + + and Java.
Strongly typed language: A variable is not strongly turned. Then it will always be this data type, and implicit type conversions are not allowed. For example, a double type of a is defined in Java, and int b = A can never be compiled without a strong turn.
Weakly typed languages: In contrast to strongly typed languages, allows the compiler to make implicit type conversions. such as C + +
interpreted language and compiled language: is at the time of operation to translate the program into machine language, for example, a foreign book, you see yourself, translation Officer to you translation, this is the interpretation of the language, and if you read at once, translation officer to you a one-time translation, which is compiled language, of course, It is not difficult to see that the compiler language is much faster. Compiled language before the program executes, there is a separate compilation process that translates the program into machine language, which is no longer executed when the program is executed later.
advantages and disadvantages of 2.python:
Advantages: High development efficiency, portable, expandable, embeddable type
Cons: Slow, code cannot encrypt, threads cannot take advantage of CPU multicore.
III. Development Environment:
No matter what language to learn, less development environment is not good, then here I would like to introduce the development of Python learning environment:
1. Here I only say window under, as for Linux, the small white has not tried, and so on after the learning will be for everyone to fill.
2. Download Python,https://www.python.org/downloads/windows, select the one you need, here I use 2.7
3. Configure environment variables, my Computer--Properties (right click)--Advanced system settings--environment variables, find the path of the system variable to add later "; E:\py\PyCharm 2017.1.2 ", note the semicolon, followed by your Python installation path.
4. Verify environment variables, win+r input cmd, enter Python after entering, this interface appears
C:\users\admin>python
Python 3.5.2 | Anaconda 4.2.0 (64-bit) | (Default, Jul 5 2016, 11:41:13) [MSC v.1
(AMD64)] on Win32
Type "Help", "copyright", "credits" or "license" for more information.
>>>
This means success, you can print ("Hello World") to start your first line of code.
Java programmer Self-taught Python day01 know Python and Environment building