【发布时间】:2017-11-07 09:19:21
【问题描述】:
下午好,我的循环正常运行了大约 4-5 个循环。之后,我收到以下错误。
似乎在 5 号循环中它没有考虑第 40 和 41 行,我不知道为什么。这是我的代码:
我的代码如下:
def loopAngulo(i):
j=85.5
while j <= 90:
doubleClick("1509640412186.png")
wait(1)
type("K")
type(Key.ENTER)
wait(1)
type("L")
type(Key.ENTER)
wait(1)
type (str(i))
type(Key.ENTER)
wait(1)
type (str(2))
type(Key.ENTER)
wait(2)
type (str(3.27))
type(Key.ENTER)
wait(1)
type (str(j))
type(Key.ENTER)
wait(1)
type (str(1))
type(Key.ENTER)
wait(2)
type ("D")
type(Key.ENTER)
type(Key.ENTER)
wait(2)
type (str(50))
type(Key.ENTER)
wait(2.2)
type (str(2))
type(Key.ENTER)
wait(2.2)
type(Key.ENTER)
wait(2.5)
type(Key.ENTER)
wait(2.4)
type(Key.LEFT)
wait(3)
type(Key.ENTER)
wait(3)
doubleClick("1509667530944.png")
wait(3)
type (str(i))
wait(1.2)
type(Key.ENTER)
wait(1.2)
type (str(j))
wait(1.5)
type(Key.ENTER)
wait(1.6)
type(Key.ENTER)
j+=1.5
i=1.36
while i <= 1.48:
loopAngulo(i)
i+=0.12
【问题讨论】:
-
欢迎来到 StackOverflow!请花点时间接受the tour。不建议将错误或代码示例作为链接发布。这是因为链接可能会过期或被用于恶意目的。请使用预先格式化的文本块来发布错误,就像您对示例代码所做的那样。