https://wiki.cabal.mx/index.php?title=Curso_de_Programaci%C3%B3n_en_Python/NativeDataTypes&feed=atom&action=history
Curso de Programación en Python/NativeDataTypes - Historial de revisiones
2024-03-28T08:41:54Z
Historial de revisiones para esta página en el wiki
MediaWiki 1.32.1
https://wiki.cabal.mx/index.php?title=Curso_de_Programaci%C3%B3n_en_Python/NativeDataTypes&diff=105265&oldid=prev
Minoxfilm: /* Numeros */
2015-10-05T05:37:41Z
<p><span dir="auto"><span class="autocomment">Numeros</span></span></p>
<p><b>Página nueva</b></p><div>== Numeros ==<br />
<br />
=== Integers (enteros): Numeros, positivo o negativo, sin partes decimales ===<br />
En Python 2.x existe long como 2L y normal enteros, en 3.x solo enteros <br />
que no podemos escribir con un 'L'<br />
1234, -434, 0<br />
<br />
=== Floating-point numeros: Numeros, positivo o negativo, con partes decimales ===<br />
4.22, 5., -344.33, 34.44e6, 33.24e-3, <br />
<br />
=== Octal, hex, y binary literales ===<br />
0o173, 0xf3a5, 0b101101<br />
en 2.X puedes escribir 0o173 como 0173<br />
<br />
=== Complex numeros ===<br />
4+2j, 0+3.6j, 55j<br />
<br />
=== Sets: 2.X and 3.X construction forms ===<br />
set( 'Lechuga' ) {1, 2, 3, 4}<br />
<br />
=== Decimales y fraction extensiones ===<br />
Decimal('1.0'), Fraction(3, 4)<br />
<br />
=== Boolean y constantes ===<br />
bool(Var), True, False<br />
<br />
<br />
[[Category:Programación en Python]]<br />
[[Category:PythonCabal]]<br />
[[Category:CursoPython]]</div>
Minoxfilm