Before the interview will be asked, Linux is not familiar? For this question: I always answer awkwardly, "well. Understand a little. "
However, when I graduated from college, even Linux virtual machines were not installed, not to mention the system is not familiar. Although I understand that this system can be manipulated entirely by command. Later work, and sometimes write point code, SVN submitted up, the server is Linux, they are running on Windows on the client. Remember that there was a project that asked to start the Java program with a shell, do you know what I did at that time? Take their shell, ask which areas to change, and then change the path to start the Java class. OK, completely do not understand the meaning inside. At the end of the interview, I had to confess: not too familiar with Linux commands.
One might say: Linux commands are not difficult. Just take a few days. Now I will be so and completely do not understand the Linux friend said so. But if I do not step out of the first steps of the Learning command. I have to be embarrassed in the interview for a long time to come.
Back to the point, we should not go to study now seems to be useless and really good things?
My answer is: if you really have the power and are willing to invest in yourself, I think it is necessary.
1, this extra study will make your weekends full.
2, when learning to a certain extent, will have a new view of things.
3, when the interview, you have a chip.
4, there is a theory: the more you learn, the more you know you don't know. (The wider the knowledge, the greater the world you see!) )
As the Love Song sings: "We have always forgotten to go to a bridge, to the other side of the mind to see", I think we have also forgotten to go to a bridge, to go to another place to see it! Oh
So let's go into the Python world together!
Python notes (1)
About Python, if you want to learn, suggest that you check the site: (because I have just decided to collect a little bit of time to learn it, the recommendation may not be the best)
Http://book.huihoo.com/dive-into-python/5.4_zh-cn/html/toc/index.html "Dive to Python"
http://docs.python.org/
http://woodpecker.org.cn/
Http://code.google.com/intl/zh-CN/edu/languages/google-python-class/introduction.html
I think it's great to just touch python, because installing a software, you can get a helloworld!.
Maybe we've already passed the age of excitement, and in fact, I'm trying to say that Python is definitely the language you need to learn easily.
1, function declaration with Def
Copy Code code as follows:
def buildconnectionstring (params):
2, Import module: Import
Copy Code code as follows:
When the module is imported, the Python compiler goes to the path of its own environment variable to find the module, and if the module to be imported is a custom path, it must first be put into the environment variable.
Copy Code code as follows:
Import Sys
Sys.path.append ('/my/new/path ')
3,if_else Statement: (Python controls blocks of code by indenting instead of "{}" in Java)
Copy Code code as follows:
If n > 1:
return n * FIB (n-1)
Else
print ' End of '
Return 1
4, built-in data type list:
List li = ["A", "B", "Mpilgrim", "Z", "example"]
Wrap it up with "[]".
A. With the for Var in list, you can traverse a list. Do not try to add and remove elements while traversing.
Copy Code code as follows:
squares = [1, 4, 9, 16]
sum = 0
For num in Squares:
sum + = num
Print Sum # 30
B. Use in to determine whether an element is in the list:
Copy Code code as follows:
list = [' Larry ', ' Curly ', ' Moe ']
If ' Curly ' in list:
print ' Yay
C.list Other methods:
Copy Code code as follows:
List.append (Elem)--Adds a single element to the "end of" the list. Common Error:does not return the new list, just modifies the original.
List.insert (Index, Elem)--Inserts the element at the given index, shifting elements to the right.
List.extend (LIST2) adds the elements in List2 to the end of the list. Using + or + on A-list is similar to using extend ().
List.index (elem)--searches for the given element from the start of the ' list and returns its index. Throws a ValueError If the element does not appear (use ' in ' to check without a valueerror).
List.remove (elem)--Searches for the ' the ' the ' given element and removes it (throws valueerror if not present )
List.sort ()--Sorts the "list in" (does not return it). (The sorted () function shown below is preferred.)
List.reverse ()--Reverses the "list in" (does not return it)
List.pop (Index)--removes and returns the element at the given index. Returns the rightmost element if index is omitted (roughly the opposite of append ()).
D. Other examples of list:
Copy Code code as follows:
list = [' Larry ', ' Curly ', ' Moe ']
List.append (' Shemp ') # # append Elem at end
List.insert (0, ' xxx ') # # Insert Elem at index 0
List.extend ([' yyy ', ' zzz ']) # # Add list of Elems at end
Print List # # [' xxx ', ' Larry ', ' Curly ', ' moe ', ' Shemp ', ' yyy ', ' zzz ']
Print List.index (' Curly ') # 2
List.remove (' Curly ') # # Search and remove that element
List.pop (1) # # Removes and returns ' Larry '
Print List # # [' xxx ', ' moe ', ' Shemp ', ' yyy ', ' zzz ']
The pure purpose of this article is to get more people to learn what they may refuse to learn because of various excuses.
I hope you can be my agitation, and some action Oh!