Created
May 28, 2014 12:11
-
-
Save tora16e/fe52854a6aef6f426953 to your computer and use it in GitHub Desktop.
引数の箇所で for がつかえるか確認した
This file contains hidden or 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
| ~ %python3 | |
| Python 3.4.0 (v3.4.0:04f714765c13, Mar 15 2014, 23:02:41) | |
| [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin | |
| Type "help", "copyright", "credits" or "license" for more information. | |
| >>> def func(a): return a | |
| ... | |
| >>> b = func((q, w) for q in range(1, 4) for w in range(3, 0, -1)) | |
| >>> for c in b: print(c) | |
| ... | |
| (1, 3) | |
| (1, 2) | |
| (1, 1) | |
| (2, 3) | |
| (2, 2) | |
| (2, 1) | |
| (3, 3) | |
| (3, 2) | |
| (3, 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment