Kaydet (Commit) f65f278b authored tarafından Guido van Rossum's avatar Guido van Rossum

added string.translate(s, table)

üst 1e150618
...@@ -159,6 +159,12 @@ Remove leading and trailing whitespace from the string ...@@ -159,6 +159,12 @@ Remove leading and trailing whitespace from the string
Convert lower case letters to upper case and vice versa. Convert lower case letters to upper case and vice versa.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{translate}{s, table}
Translate the characters from \var{s} using \var{table}, which must be
a 256-character string giving the translation for each character
value, indexed by its ordinal.
\end{funcdesc}
\begin{funcdesc}{upper}{s} \begin{funcdesc}{upper}{s}
Convert letters to upper case. Convert letters to upper case.
\end{funcdesc} \end{funcdesc}
......
...@@ -159,6 +159,12 @@ Remove leading and trailing whitespace from the string ...@@ -159,6 +159,12 @@ Remove leading and trailing whitespace from the string
Convert lower case letters to upper case and vice versa. Convert lower case letters to upper case and vice versa.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{translate}{s, table}
Translate the characters from \var{s} using \var{table}, which must be
a 256-character string giving the translation for each character
value, indexed by its ordinal.
\end{funcdesc}
\begin{funcdesc}{upper}{s} \begin{funcdesc}{upper}{s}
Convert letters to upper case. Convert letters to upper case.
\end{funcdesc} \end{funcdesc}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment