Skip to content

Instantly share code, notes, and snippets.

@teitei-tk
Created February 3, 2014 01:03
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 teitei-tk/8777464 to your computer and use it in GitHub Desktop.
Save teitei-tk/8777464 to your computer and use it in GitHub Desktop.
str型の文字を一文字ずつ書き出す
#/usr/bin/env python
def run():
target = "1234567890"
length = len(target)
for x in xrange(0, length):
print target[x-1:x]
if __name__ == "__main__":
run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment