laptop and a wrench

漏洞

In the ArcGIS Pro 2.0 Python window/command line, an error is produced when using the !=/(not equal to) logic; for example 2!=5 should return a "true", but it returns a syntax error. Also applies to variables, etc., not just integers. It is fine in ArcGIS Pro 1.4.1.

上次发布: February 7, 2018 ArcGIS Pro
漏洞 ID 编号 BUG-000106421
已提交July 7, 2017
上次修改时间August 18, 2025
适用范围ArcGIS Pro
找到的版本2.0
操作系统Windows OS
修正版本Pro 2.1
状态Fixed

解决办法

Flip logic, use <> for "not equal to",(deprecated, so does not work in current Python alone but works in ArcGIS Pro), or run Python outside of ArcGIS Pro.

重现步骤

漏洞 ID: BUG-000106421

软件:

  • ArcGIS Pro

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项