小编MrB*_* HD的帖子

如何使用2个具有相同范围的变量进行for循环?

i = xCoordinate
s = yCoordinate
for i, s in range(5):
        pyautogui.moveTo(i, s)
Run Code Online (Sandbox Code Playgroud)

错误:

for i, s in range(5):
TypeError: cannot unpack non-iterable int object
Run Code Online (Sandbox Code Playgroud)

python

-1
推荐指数
1
解决办法
63
查看次数

标签 统计

python ×1