14 lines
184 B
Python
14 lines
184 B
Python
|
|
import os
|
||
|
|
|
||
|
|
#Apresentar o nome do SO
|
||
|
|
#nt = Windows
|
||
|
|
#posix = Linux
|
||
|
|
print(os.name)
|
||
|
|
|
||
|
|
#Reptorna a pasta atual
|
||
|
|
print(os.getcwd())
|
||
|
|
|
||
|
|
#Exibe as variáveis de ambiente
|
||
|
|
print(os.environ)
|
||
|
|
|
||
|
|
os.path
|