python(os相关)前言后记
文章目录前言os一些用法diros.addtime_change练习后记前言osos:posix -> linuxnt-> windowsimport osprint(os.name)info = os.uname()print(info)print(info.sysname)print(info.nodename)print(os.environ)print(os.environ.get('PATH'))运行结果:posixposix.uname_res