Python错误:AttributeError:“tuple”对象没有“lowercase”属性?

2024-05-21 05:26:39 发布

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

(我在这里是个业余爱好者,别紧张!)。我似乎无法克服这个错误:

Runtime error 
Traceback (most recent call last):
  File "<string>", line 31, in <module>
AttributeError: 'tuple' object has no attribute 'lowercase'

下面是我的代码的简化版本:

^{pr2}$

我很难理解元组的问题。我没有在代码中的任何地方使用.lower()进行任何操作。在

我使用Python2.7,并在ArcGIS 10.5(Python窗口以及脚本工具)中运行它。这可能会在GIS堆栈交换中使用,但我不确定它是否与GIS有关。在


Tags: 代码moststring错误lineerrorcallfile