Results for “python split site:docs.python.org”
docs.python.org
Built-in Types — Python 3.11.18 documentation
Iterator Types¶. Python supports a concept of iteration over containers. This is implemented using two distinct methods; these are used to allow user-defined classes to support iteration.
docs.python.org
4. 組み込み型 — Python 3.5.10 ドキュメント
Split the sequence at the first occurrence of sep, and return a 3-tuple containing the part before the separator, the separator, and the part after the separator.
docs.python.org
string — Common string operations — Python 3.15.2 documentation
The Formatter class in the string module allows you to create and customize your own string formatting behaviors using the same implementation as the built-in ...
docs.python.org
re — Regular expression operations — Python 3.15.2 documentation
This collides with Python's usage of the same character for the same purpose in string literals; for example, to match a literal backslash, one might have to ...
docs.python.org
os.path — Common pathname manipulations — Python 3.15.2 ...
1 day ago · Split the pathname path into a 3-item tuple (drive, root, tail) where drive is a device name or mount point, root is a string of separators after the drive, and tail is everything after the root.
docs.python.org
shlex — Simple lexical analysis — Python 3.15.2 documentation
13 hours ago · The shlex class makes it easy to write lexical analyzers for simple syntaxes resembling that of the Unix shell. This will often be useful for writing minilanguages, (for example, in run control files for Python applications) or for parsing quoted strings. The shlex module defines the following functions: shlex.split(s, comments=False, posix=True) ¶ Split the string s using shell-like syntax ...
docs.python.org
11.2. os.path --- Common pathname manipulations — dokumentasi ...
path module is always the path module suitable for the operating system Python is running on, and therefore usable for local paths. ... Split the pathname ...
docs.python.org
5. Data Structures — Python 3.15.2 documentation
13 hours ago · 5.5. Dictionaries ¶ Another useful data type built into Python is the dictionary (see Mapping types — dict, frozendict). Dictionaries are sometimes found in other languages as “associative memories” or “associative arrays”.
docs.python.org
Regular expression HOWTO — Python 3.15.2 documentation
Split string by the matches of the regular expression. If capturing parentheses are used in the RE, then their contents will also be returned as part of the ...