Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Предыдущая версия справа и слеваПредыдущая версия
strings:replace [2021/12/01 11:49] – released estintaxstrings:replace [2021/12/01 11:54] (текущий) – [Пример] fix estintax
Строка 15: Строка 15:
 ===== Пример ===== ===== Пример =====
 <code python> <code python>
-strings:replace, "Hello, World!", "World", "Humanity", 1+str = "Hello, World!" 
 +strings:replace, str, "World", "Humanity", 1
 print, returned print, returned
 </code> </code>
Строка 21: Строка 22:
 <code python> <code python>
 # Удаление слова из строки # Удаление слова из строки
-strings:replace, "please, delete this word -> test", "test", "", 1+str = "please, delete this word -> test" 
 +strings:replace, str, "test", "", 1
 print, returned print, returned
 </code> </code>