Difference between revisions of "Os (Python library)"

From wikieduonline
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 18: Line 18:
 
  <code>[[os.path]].basename</code>
 
  <code>[[os.path]].basename</code>
 
  <code>os.path.realpath</code>
 
  <code>os.path.realpath</code>
 +
[[os.path.isfile]]
  
 
  [[os.environ]]['HOME']
 
  [[os.environ]]['HOME']
 +
 +
[[os.getenv]] https://docs.python.org/3/library/os.html#os.getenv
  
 
== Example ==
 
== Example ==
Line 33: Line 36:
 
* <code>[[from os import environ]]</code>
 
* <code>[[from os import environ]]</code>
 
* <code>[[pathlib]]</code>
 
* <code>[[pathlib]]</code>
 +
* [[import psutil]]
  
 
== See also ==
 
== See also ==
 +
* {{os}}
 +
* {{import}}
 
* {{Python}}
 
* {{Python}}
  
 
[[Category:Python]]
 
[[Category:Python]]

Latest revision as of 09:40, 27 March 2024

Advertising: