DevEdge
Diese Site durchsuchen
Navigation
Home
.htaccess
robots.txt
CSS
JavaScript
jQuery
jQuery UI
Perl
PHP
Python
Ruby
MySQL
Objective-C
Swift
Google Apps Script
Google Mail
Google Text & Tabellen
Google Custom Search Engine
Google Places API
Blogger
Zendesk
CodeIgniter
phpBB
Mac OS X
Tabellenkalkulation
Impressum
Google+
Python
>
Zeichenketten
>
Gross- und Kleinschreibung vertauschen
Beispiel #1
#!/usr/bin/env python
# -*- coding: utf8 -*-
print
"Content-type: text/plain\n\n"
s =
"Das ist ein Text."
print
s.swapcase()
# Ausgabe: dAS IST EIN tEXT.