This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# !/usr/bin/python | |
# -*- coding: utf-8 -*- | |
""" | |
Test script for QuantEcon ipynb Notebooks | |
引数で指定したディレクトリにあるipynbファイルを全て実行します. | |
this script is modified version of scripts in | |
https://github.com/QuantEcon/QuantEcon.applications/tree/master/_scripts_ | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# athome_scraper.py | |
# | |
# 指定したディレクトリ以下のファイルにある | |
# リンクをすべて開き, 404ERRORを探す | |
import lxml.html | |
import os |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import copy | |
# あるリストに対してforループを回している最中にその配列の要素を削除すると、バグる | |
def without4(): | |
print("without4 出力開始") | |
li = list(range(10)) | |
for key, val in enumerate(li): | |
print(val) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import copy | |
# あるリストに対してforループを回している最中にその配列の要素を削除すると、バグる | |
def without4(): | |
print("without4 出力開始") | |
li = list(range(10)) | |
for key, val in enumerate(li): | |
print(val) |