用python导出环境变量

2024-04-27 05:29:10 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图用python导出一个环境变量,但我似乎搞不懂。 这就是我要复制的:

export SHELLCODE = $(python -c "print <shellcode here>")

这是我的代码:

^{pr2}$

但当我运行它时,它说

File "<string>", line 1
print 1�Ph//shh/bin
       ^

Tags: 代码stringbinhereline环境变量exportph