Skip to content

Conversation

@Alvant
Copy link

@Alvant Alvant commented Sep 7, 2021

No description provided.

+------------------------------------------+------------------------------------------------------------------------------------------+
| :python:`s.index(sub, start=0)` | Ищет `sub` в строке `s[start:]`. Ошибка, если `sub` не найдена. |
+------------------------------------------+------------------------------------------------------------------------------------------+
| :python:`s.replace(old, rep[, max])` | Возвращает строку `s`, с заменёнными `old` на `rep`. |
Copy link
Author

@Alvant Alvant Sep 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TypeError: replace() takes no keyword arguments

| :python:`s.replace(old, rep[, max])` | Возвращает строку `s`, с заменёнными `old` на `rep`. |
| | Если третий параметр задан, то заменяются только первые `max` вхождений подстроки `old`. |
+------------------------------------------+------------------------------------------------------------------------------------------+
| :python:`s.split(sep=None, maxsplit=-1)` | Создаёт список подстрок `s`, используя `sep` в качестве разделителя. |
Copy link
Author

@Alvant Alvant Sep 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant