fix(guide): simplify directory structure

This commit is contained in:
Mrugesh Mohapatra
2018-10-16 21:26:13 +05:30
parent f989c28c52
commit da0df12ab7
35752 changed files with 0 additions and 317652 deletions

View File

@ -0,0 +1,35 @@
---
title: Python Ord Function
localeTitle: Función de Python Ord
---
## Función ord
`ord()` es una función incorporada en Python 3, para convertir la cadena que representa un carácter Unicode en un entero Representando el código Unicode del personaje.
#### Ejemplos:
```
>>> ord('d')
100
>>> ord('1')
49
```
## función chr
`chr()` es una función incorporada en Python 3, para convertir el entero representando el código Unicode en una cadena que representa un carácter correspondiente.
#### Ejemplos:
```
>>> chr(49)
'1'
```
Se debe tener en cuenta que, si el valor entero pasado a `chr()` está fuera de rango, se generará un ValueError.
```
>>> chr(-10)
'Traceback (most recent call last):
File "<pyshell#24>", line 1, in <module>
chr(-1)
ValueError: chr() arg not in range(0x110000)'
```