What is the function of the open() method in Python?
a) It opens a file and returns a file object.
b) It reads the contents of a file and returns ...
What is the function of the open() method in Python?
a) It opens a file and returns a file object. b) It reads the contents of a file and returns a string. c) It writes data to a file and returns a boolean. a) It opens a file and returns a file object. b) It reads the contents of a file and returns a string. c) It writes data to a file and returns a boolean.
A função do método open() em Python é a alternativa a) - "Ele abre um arquivo e retorna um objeto de arquivo". O método open() é usado para abrir um arquivo e retorna um objeto de arquivo que pode ser usado para ler, gravar e manipular o arquivo.
0
0
✏️ Responder
Para escrever sua resposta aqui, entre ou crie uma conta
Compartilhar