3.133.131.168 |    

Navigation

Google Advertisement

Diese Funktion wandelt ein String in Kleinbuchstaben und den ersten Buchstaben jedes Wortes in ein Großbuchstaben um.

ucwords
  1. def ucwords( string ):
  2.     """ucwords -- Converts first letter of each word
  3.     within a string into an uppercase all other to lowercase.
  4.  
  5.     (string) ucwords( (string) string )"""
  6.     erg=[ item.capitalize() for item in string.split( ' ' ) ]
  7.     return ' '.join( erg )
Parsed in 0.002 seconds at 121.74 KB/s

Search
 
Full text search by name and content of a snippet.

User online
There are 3 users online.

Tags Cloud

Latest snippets
str2seconds
(Bash::Function)
is_integer
(Bash::Function)
file_rotate
(Bash::Function)
confirm
(Bash::Function)
is_workingtime
(Bash::Function)
last day of last month
(Bash::Snippets)
crypt_apr1_md5
(PHP::Function)
crypt_apr1_md5
(Perl::Function)
transparent
(CSS)
rfc2822Toiso8601
(PHP::Function)