Created
June 12, 2016 11:43
-
-
Save anonymous/a11477c3081338028943604ff651660a to your computer and use it in GitHub Desktop.
Pythonオレメモ forとrange
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 -*- | |
junishi = ['子','丑','寅','卯','辰','巳','午','未','申','酉','戌','亥'] | |
for eto in junishi: | |
print(eto) | |
junishi_str = '子丑寅卯辰巳午未申酉戌亥' | |
for eto in junishi_str: | |
print(eto) | |
for i in range(10): | |
print(i) | |
for i in range(len(junishi)): | |
print(i, junishi[i]) | |
for i, j in enumerate(junishi): | |
print(i, j) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment