Python file detection 📁
Автор: Bro Code
Загружено: 2020-12-21
Просмотров: 38545
Описание:
Python file detection handling tutorial example explained
#python #file #handling
import os
path = "C:\\Users\\User\\Desktop\\test.txt"
if os.path.exists(path):
print("That location exists!")
if os.path.isfile(path):
print("That is a file")
elif os.path.isdir(path):
print("That is a directory!")
else:
print("That location doesn't exist!")
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: