我有一个循环:
for word in words_letter_list:
text_input.send_keys(word)
time.sleep(1)
text_input.send_keys(u'\ue007')
此循环获取一组单词并将它们写入文本区域(使用Selenium Chrome webdriver)
此外,我还有一个循环:
for text in current_word:
if '_' in current_word_text:
print('write')
else:
break
如果当前单词不再包含“\u”,我希望第一个for循环停止。
怎么可能呢
然后需要嵌套for循环
相关问题 更多 >
编程相关推荐