Preguntas frecuentes de programación — documentación de Python
Aug 3, 2020 ... Convierte el byte code Python ... extend([1, 2, 3]) y muta a_list , mientras que some_tuple += (1, 2, 3) y some_int += 1 crea nuevos objetos).
Aug 3, 2020 ... Convierte el byte code Python ... extend([1, 2, 3]) y muta a_list , mientras que some_tuple += (1, 2, 3) y some_int += 1 crea nuevos objetos).
Sep 3, 2025 ... cero en cualquiera de los diferentes tipos numéricos: 0 , 0.0 , 0j , Decimal(0) , Fraction(0, 1). cualquier colección o secuencia vacía: '' , () ...
Textual data in Python is handled with str objects, or strings. Strings are immutable sequences of Unicode code points.Unlike split() when a delimiter string sep is given, this method returns an empty list for the empty string, and a terminal line break does not result in an extra line
Resumen: Este documento es un tutorial de introducción al uso de expresiones regulares en Python con el módulo re. Proporciona una introducción más apacible ...
1 day ago · For an informal introduction to the language, see The Python Tutorial. For C or C++ programmers, two additional manuals exist: Extending and Embedding the Python Interpreter describes the high-level picture of how to write a Python extension module, and the Python/C API reference manual describes the interfaces available to C/C++ programmers in ...
Core language¶ · ¿Por qué obtengo un UnboundLocalError cuando la variable tiene un valor? · ¿Cuáles son las reglas para las variables locales y globales en Python ...
1 day ago · What's new in Python 3.15? Or all "What's new" documents since Python 2.0 Tutorial Start here: a tour of Python's syntax and features Built-ins reference Built-in functions and classes Library reference Standard library modules Language reference Syntax and language elements Python setup and usage How to install, configure, and use Python ...
1 day ago · 5. Data Structures ¶ This chapter describes some things you’ve learned about already in more detail, and adds some new things as well. 5.1. More on Lists ¶ The list data type has some more methods. Here are all of the methods of list objects: list.append(value, /) Add an item to the end of the list. Similar to a [len (a):] = [x]. list.extend(iterable, /) Extend the list by appending all ...
En Python, los nombres de archivo, los argumentos de la línea de comandos y las variables de entorno están representados usando cadena de caracteres. En algunos ...
1 day ago · This will often be useful for writing minilanguages, (for example, in run control files for Python applications) or for parsing quoted strings. The shlex module defines the following functions: shlex.split(s, comments=False, posix=True) ¶ Split the string s using shell-like syntax.
Jul 3, 2017 ... Existe-t-il des outils pour aider à trouver des bogues ou faire de l'analyse statique de code ? Comment créer un binaire autonome à partir d'un ...
The following sections describe the standard types that are built into the interpreter. The principal built-in types are numerics, sequences, mappings, classes, instances and exceptions. Some colle...
Existe-t-il des outils pour aider à trouver des bogues ou faire de l'analyse statique de code ? Comment créer un binaire autonome à partir d'un script Python ?