困ったことまとめ
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {“method”:”css selector”,”selector”:”span.grade_icon.lg img”}
TypeError: ‘list’ object is not callable
minを変数として使用してた
入力値が数字であるかどうかの判定には.isdecimal
while文を用いて正しい値が入力されるまでループ
and、or複数のときは()使う
https://www.sejuku.net/blog/20674#i
リストに、一発でリストの中の値を追加する.extend()
オリジナル関数を定義def
プログラムの実行経過時間確認.time.time()
try、exceptの使い方
https://www.sejuku.net/blog/23044
seleniumで要素チェック(エラーを回避)
from selenium.common.exceptions import NoSuchElementException
https://narito.ninja/detail/69/#_8
最大・最小
Pythonの基本文法
for文などでリストなどとカウントを同時に扱う enumerate
Pythonで対数logなどの計算
returnのあとは処理されない
組み込み型(%dとか%sとか)の対応表
複数リストをfor文でループするにはzip()
リストの要素の出現数を数える