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
# | |
# そのまま対話モード >>> に | |
# コピペで実行できます。 | |
# | |
# | |
# 再帰的に identity を表示する関数 | |
# Effective Python item 26 を参考にしました。 | |
# http://bit.ly/2HgJAyr | |
# |
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
<!-- | |
Quick start - CDN の使用 | |
https://vuetifyjs.com/ja/getting-started/quick-start#cdn-%E3%81%AE%E4%BD%BF%E7%94%A8 | |
--> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<!-- Vuetify が使うフォントの CSS --> | |
<link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900" rel="stylesheet"> |
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
# | |
# 対話モード >>> に | |
# コピペで実行できます。 | |
# | |
import bisect | |
import random | |
import timeit | |
# | |
# 1. 関数を定義 |
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
# 対話モード >>> に | |
# コピペで実行できます。 | |
class Container: | |
def __iter__(self): | |
return Iterator() | |
class Iterator: | |
def __iter__(self): | |
return self |
OlderNewer