Convert single backtick code sections to triple backtick code sections for Arabic Guide articles (13 of 15) (#36240)
* fix: converted single to triple backticks13 * fix: added prefix Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com> * fix: removed language in wrong place Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com> * fix: add language postfix Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com> * fix: removed language in wrong place Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>
This commit is contained in:
@@ -10,27 +10,31 @@ localeTitle: طريقة استبدال السلاسل
|
||||
|
||||
1. استبدال كافة تكرارات `"is"` بـ `"WAS"`
|
||||
|
||||
`string = "This is nice. This is good."
|
||||
newString = string.replace("is","WAS")
|
||||
print(newString)
|
||||
`
|
||||
```python
|
||||
string = "This is nice. This is good."
|
||||
newString = string.replace("is","WAS")
|
||||
print(newString)
|
||||
```
|
||||
|
||||
انتاج |
|
||||
|
||||
`ThWAS WAS nice. ThWAS WAS good.
|
||||
`
|
||||
```python
|
||||
ThWAS WAS nice. ThWAS WAS good.
|
||||
```
|
||||
|
||||
2. استبدال أول تكرارين لـ `"is"` بـ `"WAS"`
|
||||
|
||||
`string = "This is nice. This is good."
|
||||
newString = string.replace("is","WAS", 2)
|
||||
print(newString)
|
||||
`
|
||||
```python
|
||||
string = "This is nice. This is good."
|
||||
newString = string.replace("is","WAS", 2)
|
||||
print(newString)
|
||||
```
|
||||
|
||||
انتاج |
|
||||
|
||||
`ThWAS WAS nice. This is good.
|
||||
`
|
||||
```python
|
||||
ThWAS WAS nice. This is good.
|
||||
```
|
||||
|
||||
#### معلومات اكثر:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user