gogoWebsite

TypeError: string indices must be integers

Updated to 23 hours ago

Python3report an error:TypeError: string indices must be integers

The problem is shown in the figure below:
在这里插入图片描述The reason is that the i in the for loop represents a String variable, while the i in the List represents an Int variable, and the two conflict, resulting in an error.

BONUS: Commonly used AI toolboxes
Link:/docx/Mv4Dd8TEYoUmTAxfpLtcUoOKnZc?from=from_copylink