我知道如何在我的/ etc/profile和我的环境变量中设置它.
但是如果我想在脚本中设置它呢?是导入os,sys?我该怎么做?
python unix linux environment-variables
environment-variables ×1
linux ×1
python ×1
unix ×1