Python code get current directory and change directory path
Автор: Japan Smartphone Unlocking Service
Загружено: 2023-10-11
Просмотров: 273
Описание:
import os.path
#Current Working Directory Path
print('Current Working Directory Path : ', os.getcwd())
#Application File Name Directory Path
print('Application File Name Directory Path : ', __file__)
#Application Name
print('Application File Name : ', os.path.basename(__file__))
#Current Working Directory Path
print('Current Working Directory Path : ', os.path.dirname(__file__))
#Application File Directory Path
print('Application File Directory Path : ', os.path.abspath(__file__))
#Current Working Directory Path
print('Current Working Directory Path : ', os.path.dirname(os.path.abspath(__file__)))
#change directory Path
os.chdir(os.path.dirname(os.path.abspath(__file__)))
print('Current Working Directory Path : ', os.getcwd())
input()
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: