次のpythonでのfor文をリスト内包表記で書きたいのですがまったくわかりません。。。
python
1 for tables in soup.find_all('div', attrs={'class': 'list-rst__rst-name'}): 2 for link in tables.find_all('a'): 3 shop = link.get('href')
書き方を教えていただいてもよろしいでしょうか?
回答4件
あなたの回答
tips
プレビュー
投稿2017/05/20 05:34
次のpythonでのfor文をリスト内包表記で書きたいのですがまったくわかりません。。。
python
1 for tables in soup.find_all('div', attrs={'class': 'list-rst__rst-name'}): 2 for link in tables.find_all('a'): 3 shop = link.get('href')
書き方を教えていただいてもよろしいでしょうか?
回答4件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。