阅读背景:

告诉Python是否处于交互模式

来源:互联网 

In a Python script, is there any way to tell if the interpreter is in interactive mode? This would be useful so that, for instance, when you run an interactive Python session and import a module, slightly different code is executed (for example, logging is turned off).In a Python script, is there any way to tell if




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: