|
|
Zeile 1: |
Zeile 1: |
− | * Strings bearbeiten
| + | == String Methoden== |
| + | Die Klasse String enthält eine ganze Reihe von Methoden die einen komfortablen Umgang mit Strings ermöglichen. Der Umfang an Methoden ist bei Micropython reduziert. |
| + | <pre> |
| + | >>> dir(str) |
| + | ['__class__', '__name__', 'count', 'endswith', 'find', 'format', 'index', |
| + | 'isalpha', 'isdigit', 'islower', 'isspace', 'isupper', 'join', 'lower', 'lstrip', |
| + | 'replace', 'rfind', 'rindex', 'rsplit', 'rstrip', 'split', 'startswith', 'strip', |
| + | 'upper', '__bases__', '__dict__', 'center', 'encode', 'partition', |
| + | 'rpartition', 'splitlines'] |
| + | >>> |
| + | </pre> |
| + | |
| ** https://en.wikipedia.org/wiki/ASCII | | ** https://en.wikipedia.org/wiki/ASCII |
| ** https://nedbatchelder.com/text/unipain.html | | ** https://nedbatchelder.com/text/unipain.html |
Version vom 27. September 2023, 16:48 Uhr
String Methoden
Die Klasse String enthält eine ganze Reihe von Methoden die einen komfortablen Umgang mit Strings ermöglichen. Der Umfang an Methoden ist bei Micropython reduziert.
>>> dir(str)
['__class__', '__name__', 'count', 'endswith', 'find', 'format', 'index',
'isalpha', 'isdigit', 'islower', 'isspace', 'isupper', 'join', 'lower', 'lstrip',
'replace', 'rfind', 'rindex', 'rsplit', 'rstrip', 'split', 'startswith', 'strip',
'upper', '__bases__', '__dict__', 'center', 'encode', 'partition',
'rpartition', 'splitlines']
>>>
Navigation
Zurück zu Micropython Kurs 2023 - Teil 1
Zurück zur "Micropython Kurs 2023" Startseite
Zurück zur Programmieren Startseite
Zurück zur Wiki Startseite