NameError:在wsadmin cli实用程序上的jython中使用布尔值时为True

2024-10-02 10:19:08 发布

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

为wsadmin编写jython脚本时,似乎不可能像这个简单示例所示那样使用布尔值。在

应用程序-停止.py公司名称:

isTrue = True
print isTrue

电话:

^{pr2}$

结果:

D:\IBM\WebSphere\AppServer WASX7209I: Connected to process "dmgr" on node OurCellManager using SOAP connector; The type of process is: DeploymentManager WASX7017E: Exception received while running file "D:\app-stop.py"; exception information: com.ibm.bsf.BSFException: exception from Jython: Traceback (innermost last): File "", line 1, in ? NameError: True

不管我是在写True(应该是有效的python)还是true。唯一的方法是isTrue = 1。但是为什么不能在wsadmin上的jython中使用有效的python代码呢?在


Tags: py脚本名称true应用程序示例exception公司

热门问题