如何检查 PYTHONSTARTUP 变量是否已定义?
我正在查看这个 Stack Overflow 答案,其中作者说要让原始海报检查 PYTHONSTARTUP 变量是否已定义。我环顾四周,找不到如何检查它是否已定义。
如何检查PYTHONSTARTUP变量是否已定义?
I was looking at this Stack Overflow answer and in it the author says for the original poster to check if the PYTHONSTARTUP variable is defined. I looked around and can not find out how to check to see if it is defined.
How do you check to see if the PYTHONSTARTUP variable is defined?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Windows (cmd.exe):
在其他地方(在 shell 中,例如 bash):
在 Python 中:
Windows (cmd.exe):
Elsewhere (in a shell, e.g. bash):
In Python:
我认为这是一个环境变量。
I assume it's an environment variable.