“Cómo archivar en Python” Código de respuesta

Python hace un archivo txt

file = open("text.txt", "w") 
file.write("Your text goes here") 
file.close() 
'r' open for reading (default)
'w' open for writing, truncating the file first
'x' open for exclusive creation, failing if the file already exists
'a' open for writing, appending to the end of the file if it exists
Kodi4444

Cómo archivar en Python

Simple way to get a directory of a file and open it:
  
from tkinter.filedialog import askopenfilename

filename = askopenfilename()
Clever Caribou

Respuestas similares a “Cómo archivar en Python”

Preguntas similares a “Cómo archivar en Python”

Más respuestas relacionadas con “Cómo archivar en Python” en Python

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código