2014년 9월 16일 화요일

20140917 Today's development of techonology.

Today's expression==========================================================

- From a medical point of view, he does not show some evidence of illness.
- She have no regard for others' feeling.
- I have no choice but to force (have no alternative but to / have no option but to)
- In economic matters we should make a decision quickly.
- In the course of time, I got accustomed to new surroundings.

- I seldom listen to the traditional music. / classical music
- COMDEX trade show is held in Las Vegas every autumn.
- Fusion food is well received. Foods are well received.
- It turns out to be a big mistake.
- The Koreans, as opposed to the Japanese, are religious.
- I became aware of the fact that all of things start at home. /it all starts at home
- Curiously enough, a few of Americans enjoy Korean food.
- I have no alternative but to leave my dormitory. the dormitory
- In environmental matters, we should predict the future carefully. with great caution.
- In the course of time, beautiful tradition gradually fade away. -> traditions have fade away a little.

- I have never been sick in my life. In this respect (in this regard)  I have been very lucky.
- In view of these circumstances we decided to not take legal action.
- There is no point trying to convince him.
- I will sign the contract on condition that delivery of goods is on time. you deliver goods on time.
- Personally, I believe human beings have the right to equal opportunities.


Python
- Source code does not declare the types of variables or parameters or methods.

- When a Python file is run directly, the special variable "__name__" is set to "__main__". Therefore, it's common to have the boilerplate if __name__ ==... shown above to call a main() function when the module is run directly, but not when the module is imported by some other module.

-We also presented 2 different ways to repeat strings, using the + operator which is more user-friendly, but * also works because it's Python's "repeat" operator, meaning that '-' * 10 gives '----------', a neat way to create an onscreen "line."

- We hinted that * works faster than +, the reason being that * calculates the size of the resulting object once whereas with +, that calculation is made each time + is called. 

- One unusual Python feature is that the whitespace indentation of a piece of code affects its meaning.
A logical block of statements such as the ones that make up a function should all have the same indentation

- The funny thing in Python ... this code compiles and runs fine so long as the name at runtime is not 'Guido'. Only when a run actually tries to execute the repeeeet() will it notice that there is no such function and raise an error. 
In this way, various Python modules can name their functions and variables whatever they want, and the variable names won't conflict -- module1.foo is different from module2.foo.

You can find the documentation of all the Standard Library modules and packages at http://docs.python.org/library.

댓글 없음:

댓글 쓰기