我希望找到名为: Form_error__34nSh -If find的类名,返回True -If not,返回False I use:driver.find_element(By.CLASS_NAME, "Form_error__34nSh")它在Class_name的成本情况下工作,但在class_name不存在的情况下得到错误。而且这个节目已经停止了,selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"met
谁能解释一下下面的代码“如果不是epoch%display n epoch”是什么意思?我的理解是,如果epoch / display没有余数,则打印语句。有人能帮我澄清一下吗? if not epoch%display_n_epoch:
print(f"Epoch {epoch}: Train Loss: {train_loss:.3f} | Test Loss: {test_loss:.3f} ")