Новый курс!
Каждый программист должен знать
генеративный ИИ!
Попробуйте бесплатный урок
Курсы
Курсы
Компилятор кода
Компилятор кода
Обсуждения
Sololearn PRO
Teams
Войти
Регистрация
Menu
Обсуждения
Поиск
Поиск
Задать вопрос
Задать вопрос
What will happened if we write 2 times file.close() statement?
files
python
1 голос
5 ответов
29th Mar 2016, 3:45 PM
Dinesh Ingole
Is the following syntax valid? file = open("filename.txt","r") print(file.read()) file.close()
files
python
0 голосов
3 ответов
10th Jul 2016, 2:47 AM
Essam Mohamed Mahmoud Ahmed
file = open("/usercode/files/books.txt", "r") #your code goes here file.close()
files
1 голос
5 ответов
2nd Jan 2022, 2:11 PM
Abiye Iniabere
Can only one file be open at once? If no, does the file.close() method close all open files...
files
python
0 голосов
3 ответов
11th Oct 2016, 2:28 PM
Paul Obasi
can anybody tell me what has changed
"r")
=
contents")
file
file.close()
initial
open("newfile.txt"
print("finished")
print("reading
print(file.read())
1 голос
1 ответ
27th Mar 2019, 4:41 AM
胡軒豪
Задать вопрос
Задать вопрос
Задать вопрос
Задать вопрос
Актуальное сегодня
Is the AI course worth the $49?
0 Votes
Can anyone please help with this below code for python files
1 Votes
How private are "private" code snippets in Sololearn really?
1 Votes
Should I always mention name attribute inside <input type="" id="" name="" > ??
0 Votes
Where to use
0 Votes
Coding path
0 Votes
Scroll to bottom of page in Selenium with browser minimized
0 Votes
Blank screen when trying to but AI course on Apple 15 I phone,
0 Votes
How to win bits
1 Votes
Question on code instructionn course. Update: anwsered
1 Votes