Код: Выделить всё
match string:
case "[a-zA-Z]":
... do something
case _:
print("Not a match")
Подробнее здесь: https://stackoverflow.com/questions/717 ... tern-match
Код: Выделить всё
match string:
case "[a-zA-Z]":
... do something
case _:
print("Not a match")