(shows how the sad experience) Please note the following points for the theory test:
- In Python there are only and , or and not , not & & , one of only interactive use, because in this case each value is displayed). octal constant may be followed in python2.x with leading
- 0 (zero, for example 023 == 19), in python3.x with leading 0o (zero of small
- o , eg 0o23 == 19) characterized.
- python3.x allowed innately Unicode (eg characters), in python2.x have to specify a coding . A Index always starts at 0 ! (On strings, lists, quantities, etc.) If
- is greater for a "slice" the limit as the number of elements, it does not. For example "hello" [1:23] provides "allo" , as well "hello" [1:] or "hello" [1:5] .
- parameters to a Python function: it must always be at least as many parameters are specified when set as fixed parameters (no default). This also works if the parameter as a variable list (actually Dictionary) passes when the dictionary has the appropriate name of the parameter as a key, the correct number and when called with one or two * is indicated. Look it up from script to page 38. 1 / 0 is no
- defined language third == 0 in python2.x but third! = 0 (because 0.3333333333 ...) in python3.x .
- Shell variable be marked with $ except that variable is to the left of an assignment. Example: bar = bar ( variable $ bar gets the string "bar" ) but foo = $ bar ( the variable $ foo is the value of variable $ bar
- assigned) or echo $ foo bar ( are "bar" from because the content of $ foo also "bar" is ). A Shell can of course more than just a program run simultaneously, as if several commands in the pipe connecting or end of commandos & attaches. Furthermore, it is still the possibility of ^ Z, bg and fg). course you have to learn the other content.
0 comments:
Post a Comment