Python/String

From Fundamental Ramen
Jump to navigation Jump to search

Using statements

Using methods

Sample
bytes => str
b'abc'.decode('utf-8)
Prefix & Suffix
if s.startswith(): ...
if s.endswith(): ...