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:
@@ -8,11 +8,12 @@ localeTitle: بيثون اورد وظيفة
|
||||
|
||||
#### أمثلة:
|
||||
|
||||
`>>> ord('d')
|
||||
100
|
||||
>>> ord('1')
|
||||
49
|
||||
`
|
||||
```
|
||||
>>> ord('d')
|
||||
100
|
||||
>>> ord('1')
|
||||
49
|
||||
```
|
||||
|
||||
## وظيفة chr
|
||||
|
||||
@@ -20,15 +21,17 @@ localeTitle: بيثون اورد وظيفة
|
||||
|
||||
#### أمثلة:
|
||||
|
||||
`>>> chr(49)
|
||||
'1'
|
||||
`
|
||||
```
|
||||
>>> chr(49)
|
||||
'1'
|
||||
```
|
||||
|
||||
هناك أمر واحد يمكن ملاحظته ، إذا كانت قيمة العدد الصحيح التي تم تمريرها إلى `chr()` خارج النطاق ، فسيتم رفع قيمة ValueError.
|
||||
|
||||
`>>> chr(-10)
|
||||
'Traceback (most recent call last):
|
||||
File "<pyshell#24>", line 1, in <module>
|
||||
chr(-1)
|
||||
ValueError: chr() arg not in range(0x110000)'
|
||||
`
|
||||
```
|
||||
>>> chr(-10)
|
||||
'Traceback (most recent call last):
|
||||
File "<pyshell#24>", line 1, in <module>
|
||||
chr(-1)
|
||||
ValueError: chr() arg not in range(0x110000)'
|
||||
```
|
||||
Reference in New Issue
Block a user