Skip to content

Instantly share code, notes, and snippets.

Created June 12, 2016 11:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/a11477c3081338028943604ff651660a to your computer and use it in GitHub Desktop.
Save anonymous/a11477c3081338028943604ff651660a to your computer and use it in GitHub Desktop.
Pythonオレメモ  forとrange
# -*- 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