Difference between revisions of "Python"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
+ | [[Category:Python]] | ||
+ | |||
Generic things: | Generic things: | ||
Revision as of 09:36, 3 August 2018
Generic things:
The Python style guide is described in [PEP 8]
Modules
To add the location of your own modules to the python search path put it in the PYTHONPATH variable.
- import sys
- Number of system variables
- sys.argv
- List of everything on the commandline. sys.argv[0] is the program itself.
- import getopt
- Module to parse the commandline arguments (sys.argv). Default available