15. Lektion: Stringbearbeitung
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'] >>>
- https://en.wikipedia.org/wiki/ASCII
- https://nedbatchelder.com/text/unipain.html
- https://docs.microphyton.org/en/v1.12/genrst/builtin_types.html?highlight=ljust
- https://www.phyton-lernen.de/string-methode-center.htm
- https://en.wikipedia.org/wiki/ASCII
- https://nedbatchelder.com/text/unipain.html
- https://medium.com/@sami.hamdiapps/elevate-your-python-skills-string-comparison-python-made-easy-bd0b3b08b55b
- https://levelup.gitconnected.com/10-more-python-methods-for-manipulating-strings-545f73211d37
- .format und %
- input()
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