Results for “python split example code html script error site:docs.python.org 1”
docs.python.org
html.parser — Simple HTML and XHTML parser — Python 3.15.2 ...
Source code: Lib/html/parser.py This module defines a class HTMLParser which serves as the basis for parsing text files formatted in HTML (HyperText Mark-up ...
docs.python.org
argparse — Parser for command-line options, arguments and...
Source code: Lib/argparse.py Tutorial: This page contains the API reference information.Sometimes a script only needs to handle a specific set of command-line arguments, leaving any unrecognized arguments for another script or program.
docs.python.org
Built-in Exceptions — Python 3.15.2 documentation
... error code and a string explaining the code). The associated value is ... string), the object's value is printed and the exit status is one. A call to ...
docs.python.org
cgi — Common Gateway Interface support — Python 3.12.16...
Source code: Lib/cgi.py Support module for Common Gateway Interface (CGI) scripts. This module defines a number of utilities for use by CGI scripts written in Python.
docs.python.org
re — Regular expression operations — Python 3.15.2 documentation
... one-character string containing a newline. Usually patterns will be expressed in Python code using this raw string notation. It is important to note that ...
docs.python.org
urllib.parse — Parse URLs into components — Python...
Source code: Lib/urllib/parse.py. This module defines a standard interface to break Uniform Resource Locator (URL) strings up in components (addressing scheme, network location, path etc.), to combine the components back into a URL string, and to convert a “relative URL” to an absolute...
docs.python.org
6. Modules — Python 3.15.2 documentation
If you quit from the Python interpreter and enter it again, the definitions you have made (functions and variables) are lost. Therefore, if you want to ...
docs.python.org
2. Writing the Setup Script — Python 3.11.16 documentation
If you, for example, use standard Python functions such as glob.glob() or os.listdir() to specify files, you should be careful to write portable code instead of hardcoding path separators: glob.glob(os.path.join('mydir', 'subdir', '*.html')) os.listdir(os.path.join('mydir', 'subdir')).
docs.python.org
cgi — Common Gateway Interface support — Python 3.9.25 ...
Here's Python code that prints a simple piece of HTML: print("<TITLE> ... So you write a script containing for example this code: user = form.getvalue ...
docs.python.org
The Python Tutorial — Python 3.15.2 documentation
Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to ...