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, 2018ArcGIS 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.