能看一下那三条注释下我的代码有什么问题,就是运行不了,太难受了,感谢帮助
n = 100
lst = [1] * n
pos = 0
cnt = 0
total = 0
while True:
while lst[pos] == 0:
pos = (pos + 1) % n
total += 1
if cnt == n - 1:
break
if total % 3 == 0:
lst[pos] = 0
cnt = cnt + 1
pos = (pos + 1) % n
print(lst.index(1) + 1)
n = 100
lst = [1] * n
pos = 0
cnt = 0
total = 0
while True:
while lst[pos] == 0:
pos = (pos + 1) % n
total += 1
if cnt == n - 1:
print(lst.index(1) + 1)
break
if total % 3 == 0:
lst[pos] = 0
cnt += 1
pos = (pos + 1) % n
根据user_account及password的值可知,这是我们登录的账号密码。并且采用的是GET方法来进行连接,复制包含账号密码的URL
由于每次分配的wlan_user_ip地址是不同的,所以需要通过psutil库来动态获取