Str
Str
exe C:\Users\
Newuser\PycharmProjects\PythonProject\.venv\Lib\py.py
class str(object)
| that will be decoded using the given encoding and error handler.
| or repr(object).
| __add__(self, value, /)
| Return self+value.
| __contains__(self, key, /)
| __eq__(self, value, /)
| Return self==value.
| __format__(self, format_spec, /)
| Return a formatted version of the string as described by format_spec.
| __ge__(self, value, /)
| Return self>=value.
| __getitem__(self, key, /)
| Return self[key].
| __getnewargs__(self, /)
| __gt__(self, value, /)
| Return self>value.
| __hash__(self, /)
| Return hash(self).
| __iter__(self, /)
| Implement iter(self).
| __le__(self, value, /)
| Return self<=value.
| __len__(self, /)
| Return len(self).
| __lt__(self, value, /)
| Return self<value.
|
| __mod__(self, value, /)
| Return self%value.
| __mul__(self, value, /)
| Return self*value.
| __ne__(self, value, /)
| Return self!=value.
| __repr__(self, /)
| Return repr(self).
| __rmod__(self, value, /)
| Return value%self.
| __rmul__(self, value, /)
| Return value*self.
| __sizeof__(self, /)
| __str__(self, /)
| Return str(self).
| capitalize(self, /)
| More specifically, make the first character have upper case and the rest lower
| case.
| casefold(self, /)
| encoding
| errors
|
| endswith(self, suffix[, start[, end]], /)
| Return True if the string ends with the specified suffix, False otherwise.
| suffix
| start
| end
| expandtabs(self, /, tabsize=8)
| Return a copy where all tab characters are expanded using spaces.
| Return the lowest index in S where substring sub is found, such that sub is contained
within S[start:end].
| Return -1 on failure.
| Return a formatted version of the string, using substitutions from args and kwargs.
| format_map(self, mapping, /)
| Return the lowest index in S where substring sub is found, such that sub is contained
within S[start:end].
| isalnum(self, /)
| isalpha(self, /)
| A string is alphabetic if all characters in the string are alphabetic and there
| isascii(self, /)
| Return True if all characters in the string are ASCII, False otherwise.
| isdecimal(self, /)
| Return True if the string is a decimal string, False otherwise.
| A string is a decimal string if all characters in the string are decimal and
| isdigit(self, /)
| A string is a digit string if all characters in the string are digits and there
| isidentifier(self, /)
| islower(self, /)
| A string is lowercase if all cased characters in the string are lowercase and
| isnumeric(self, /)
| A string is numeric if all characters in the string are numeric and there is at
| isprintable(self, /)
| repr() or if it is empty.
| isspace(self, /)
| A string is whitespace if all characters in the string are whitespace and there
| istitle(self, /)
| isupper(self, /)
| A string is uppercase if all cased characters in the string are uppercase and
| join(self, iterable, /)
|
| The string whose method is called is inserted in between each given string.
| lower(self, /)
| lstrip(self, chars=None, /)
| partition(self, sep, /)
| Partition the string into three parts using the given separator.
| This will search for the separator in the string. If the separator is found,
| returns a 3-tuple containing the part before the separator, the separator
| If the separator is not found, returns a 3-tuple containing the original string
|
| removeprefix(self, prefix, /)
| removesuffix(self, suffix, /)
| If the string ends with the suffix string and that suffix is not empty,
| string.
| count
| If the optional argument count is given, only the first count occurrences are
| replaced.
| Return the highest index in S where substring sub is found, such that sub is contained
within S[start:end].
| Return the highest index in S where substring sub is found, such that sub is contained
within S[start:end].
| rpartition(self, sep, /)
| Partition the string into three parts using the given separator.
| This will search for the separator in the string, starting at the end. If
| the separator is found, returns a 3-tuple containing the part before the
| If the separator is not found, returns a 3-tuple containing two empty strings
| Return a list of the substrings in the string, using sep as the separator string.
| sep
| The separator used to split the string.
| When set to None (the default value), will split on any whitespace
| maxsplit
| Splitting starts at the end of the string and works to the front.
| rstrip(self, chars=None, /)
| Return a list of the substrings in the string, using sep as the separator string.
| sep
| When set to None (the default value), will split on any whitespace
| maxsplit
| Splitting starts at the front of the string and works to the end.
| Note, str.split() is mainly useful for data that has been intentionally
| splitlines(self, /, keepends=False)
| Line breaks are not included in the resulting list unless keepends is given and
| true.
| Return True if the string starts with the specified prefix, False otherwise.
| prefix
| start
| end
| strip(self, chars=None, /)
| Return a copy of the string with leading and trailing whitespace removed.
|
| swapcase(self, /)
| title(self, /)
| More specifically, words start with uppercased characters and all remaining
| translate(self, table, /)
| Replace each character in the string using the given translation table.
| table
| upper(self, /)
| zfill(self, width, /)
| Pad a numeric string with zeros on the left, to fill a field of the given width.
|
| ----------------------------------------------------------------------
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
| If there are two arguments, they must be strings of equal length, and
None