progredes20261/modulo_os/testes.py

12 lines
179 B
Python

import os
# Apresentar o nome do SO
# nt = Windows
# posix = Linux
print(os.name)
# Retorna a pasta atual
print(os.getcwd())
# Exibe as variáveis de ambiente
print(os.environ)