Domanda |
Risposta |
Capitalizes first letter of string inizia ad imparare
|
|
|
|
|
Returns a string padded with fillchar with the original string CENTERED to a total of width columns. inizia ad imparare
|
|
|
|
|
Counts how many times str occurs in string or in a substring of string if starting index beg and ending index end are given. inizia ad imparare
|
|
count(str, beg = 0, end = len(string))
|
|
|
Decodes the string using the codec registered for encoding. encoding defaults to the default string encoding. inizia ad imparare
|
|
decode(encoding = 'UTF-8', errors = 'strict')
|
|
|
Returns encoded string version of string on error, default is to raise a ValueError unless errors is given with 'ignore' or 'replace'. inizia ad imparare
|
|
encode(encoding = 'UTF-8', errors = 'strict')
|
|
|
Expands tabs in string to multiple spaces defaults to 8 spaces per tab if tabsize not provided. inizia ad imparare
|
|
|
|
|
Determine if str occurs in string or in a substring of string if starting index beg and ending index end are given returns index if found and -1 otherwise. inizia ad imparare
|
|
find(str, beg = 0 end = len(string))
|
|
|
Same as find(), but raises an exception if str not found. inizia ad imparare
|
|
index(str, beg = 0, end = len(string))
|
|
|
Returns true if string has at least 1 character and all characters are alphanumeric and false otherwise. inizia ad imparare
|
|
|
|
|
Returns true if string has at least 1 character and all characters are alphabetic and false otherwise. inizia ad imparare
|
|
|
|
|
Returns true if string contains only digits and false otherwise. inizia ad imparare
|
|
|
|
|
Returns true if string has at least 1 cased character and all cased characters are in lowercase and false otherwise. inizia ad imparare
|
|
|
|
|
Returns true if a unicode string contains only numeric characters and false otherwise. inizia ad imparare
|
|
|
|
|
Returns true if string contains only whitespace characters and false otherwise. inizia ad imparare
|
|
|
|
|
Returns true if string is properly "titlecased" and false otherwise. inizia ad imparare
|
|
|
|
|
Returns true if string has at least one cased character and all cased characters are in uppercase and false otherwise. inizia ad imparare
|
|
|
|
|
Merges (concatenates) the string representations of elements in sequence seq into a string, with separator string. inizia ad imparare
|
|
|
|
|
Returns the length of the string inizia ad imparare
|
|
|
|
|
Returns a space-padded string with the original string left-justified to a total of width columns. inizia ad imparare
|
|
|
|
|
Converts all uppercase letters in string to lowercase. inizia ad imparare
|
|
|
|
|
Removes all leading whitespace in string. inizia ad imparare
|
|
|
|
|
Returns a translation table to be used in translate function. inizia ad imparare
|
|
|
|
|
Returns the max alphabetical character from the string str. inizia ad imparare
|
|
|
|
|
Returns the min alphabetical character from the string str. inizia ad imparare
|
|
|
|
|
Replaces all occurrences of old in string with new or at most max occurrences if max given. inizia ad imparare
|
|
replace(old, new [, max])
|
|
|
Same as find(), but search backwards in string. inizia ad imparare
|
|
rfind(str, beg = 0, end = len(string))
|
|
|
Same as index(), but search backwards in string. inizia ad imparare
|
|
rindex(str, beg = 0, end = len(string))
|
|
|
Returns a space-padded string with the original string right-justified to a total of width columns. inizia ad imparare
|
|
rjust(width,[, fillchar])
|
|
|
Removes all trailing whitespace of string. inizia ad imparare
|
|
|
|
|
Splits string according to delimiter str (space if not provided) and returns list of substrings inizia ad imparare
|
|
split(str="", num=string. count(str)) split into at most num substrings if given.
|
|
|
Splits string at all (or num) NEWLINEs and returns a list of each line with NEWLINEs removed. inizia ad imparare
|
|
splitlines(num=string. count('\n'))
|
|
|
Determines if string or a substring of string (if starting index beg and ending index end are given) starts with substring str returns true if so and false otherwise. inizia ad imparare
|
|
startswith(str, beg=0, end=len(string))
|
|
|
Performs both lstrip() and rstrip() on string inizia ad imparare
|
|
|
|
|
Inverts case for all letters in string. inizia ad imparare
|
|
|
|
|
Returns "titlecased" version of string, that is, all words begin with uppercase and the rest are lowercase. inizia ad imparare
|
|
|
|
|
Translates string according to translation table str(256 chars), removing those in the del string. inizia ad imparare
|
|
translate(table, deletechars="")
|
|
|
Converts lowercase letters in string to uppercase. inizia ad imparare
|
|
|
|
|
Returns original string leftpadded with zeros to a total of width characters intended for numbers, it retains any sign given (less one zero). inizia ad imparare
|
|
|
|
|
Returns true if a unicode string contains only decimal characters and false otherwise. inizia ad imparare
|
|
|
|
|
Converts string into lower case inizia ad imparare
|
|
|
|
|
Returns True if the string is an identifier inizia ad imparare
|
|
|
|
|
Returns a tuple where the string is parted into three parts inizia ad imparare
|
|
|
|
|
Splits the string at the specified separator, and returns a list inizia ad imparare
|
|
|
|
|
Splits the string at the specified separator, and returns a list inizia ad imparare
|
|
|
|
|
Returns a tuple where the string is parted into three parts inizia ad imparare
|
|
|
|
|
Returns a tuple where the string is parted into three parts inizia ad imparare
|
|
|
|
|
inizia ad imparare
|
|
|
|
|
inizia ad imparare
|
|
|
|
|