Python imp things
All built-in functions
https://docs.python.org/3/library/functions.html#eval
a // b = The integer part of the integer division of a by b
a ** b = Elevates a to the power of b. For non integer values of b, this becomes a root (i.e. a**(1/2) is the square root of a)
Character | Meaning |
|---|---|
| open for reading (default) |
| open for writing, truncating the file first |
| open for exclusive creation, failing if the file already exists |
| open for writing, appending to the end of file if it exists |
| binary mode |
| text mode (default) |
| open for updating (reading and writing) |
The default mode is 'r' (open for reading text, a synonym of 'rt'). Modes 'w+' and 'w+b' open and truncate the file. Modes 'r+' and 'r+b' open the file with no truncation.
Comments
Post a Comment