• Cursos
  • Compilador de Código
  • Debatir
  • Precios
  • Teams
Menu

Sesiones de PyR

What will happened if we write 2 times file.close() statement?
filespython
1 Voto
5 Respuestas
29th Mar 2016, 3:45 PM
Dinesh Ingole
Dinesh Ingole - avatar
Is the following syntax valid? file = open("filename.txt","r") print(file.read()) file.close()
filespython
0 Votos
3 Respuestas
10th Jul 2016, 2:47 AM
Essam Mohamed Mahmoud Ahmed
Essam Mohamed Mahmoud Ahmed - avatar
file = open("/usercode/files/books.txt", "r")  #your code goes here   file.close()
files
1 Voto
5 Respuestas
2nd Jan 2022, 2:11 PM
Abiye Iniabere
Abiye Iniabere - avatar
Can only one file be open at once? If no, does the file.close() method close all open files...
filespython
0 Votos
3 Respuestas
11th Oct 2016, 2:28 PM
Paul Obasi
Paul Obasi - avatar
can anybody tell me what has changed
"r")=contents")filefile.close()initialopen("newfile.txt"print("finished")print("readingprint(file.read())
1 Voto
1 Respuesta
27th Mar 2019, 4:41 AM
胡軒豪
胡軒豪 - avatar
En tendencia hoy
generic programming understanding memory ownership
0 Votes
overloading operators << >>
1 Votes
How to start in web dev?
0 Votes
Default constructor and default assignment operator
0 Votes
Wishkit alternative for android
1 Votes
Hi
0 Votes
Issue in code
0 Votes
My question is about python?
0 Votes
i need to learn Coding
0 Votes
.
0 Votes