Results for “python split site:docs.python.org command”
docs.python.org
Built-in Types — Python 3.15.2 documentation
... command-line option to Python). For example: Copy >>> str(b'Zoot!') "b ... Unlike split() when a delimiter string sep is given, this method returns an ...
docs.python.org
Regular expression HOWTO — Python 3.15.2 documentation
Split the string into a list, splitting it wherever the RE matches. sub(). Find all substrings where the RE matches, and replace them with a different string.
docs.python.org
shlex — Simple lexical analysis — Python 3.15.2 documentation
14 hours ago · shlex.join(split_command) ¶ Concatenate the tokens of the list split_command and return a string. This function is the inverse of split ().
docs.python.org
os.path — Common pathname manipulations — Python 3.15.2 ...
1 day ago · os.path.basename(path, /) ¶ Return the base name of pathname path. This is the second element of the pair returned by passing path to the function split (). Note that the result of this function is different from the Unix basename program; where basename for '/foo/bar/' returns 'bar', the basename () function returns an empty string ('').
docs.python.org
string — Common string operations — Python 3.15.2 documentation
The default version understands 's' (str), 'r' (repr) and 'a' (ascii) conversion types. Format string syntax¶. The str.format() method and the Formatter ...
docs.python.org
Python 3.15.2 documentation
1 day ago · What's new in Python 3.15? Or all "What's new" documents since Python 2.0 Tutorial Start here: a tour of Python's syntax and features Built-ins reference Built-in functions and classes Library reference Standard library modules Language reference Syntax and language elements Python setup and usage How to install, configure, and use Python ...
docs.python.org
re — Regular expression operations — Python 3.15.2 documentation
Usually patterns will be expressed in Python code using this raw string notation. ... Identical to the split() function, using the compiled pattern. Pattern ...
docs.python.org
3.13.18 Documentation
Python setup and usage How to install, configure, and use Python. Python HOWTOs In-depth topic manuals. Installing Python modules Third-party modules and PyPI.org.
docs.python.org
7. Input and output — Python 3.15.2 documentation
1 day ago · 7. Input and output ¶ There are several ways to present the output of a program; data can be printed in a human-readable form, or written to a file for future use. This chapter will discuss some of the possibilities. 7.1. Fancier output formatting ¶ So far we’ve encountered two ways of writing values: expression statements and the print () function. (A third way is using the write ...
docs.python.org
Sorting Techniques — Python 3.15.2 documentation
14 hours ago · Sorting Techniques ¶ Python lists have a built-in list.sort () method that modifies the list in-place. There is also a sorted () built-in function that builds a new sorted list from an iterable. In this document, we explore the various techniques for sorting data using Python. Sorting Basics ¶ A simple ascending sort is very easy: just call the sorted () function. It returns a new sorted list:
docs.python.org
subprocess — Subprocess management — Python 3.15.2 ...
stderr are not updated by the Popen.communicate() method. If shell is True , the specified command will be executed through the shell. This can be ...