Skip to content

Instantly share code, notes, and snippets.

@hirokiky
Created January 11, 2012 15:55
Show Gist options
  • Save hirokiky/1595316 to your computer and use it in GitHub Desktop.
Save hirokiky/1595316 to your computer and use it in GitHub Desktop.
mahican-saibai
#!/usr/bin/env python -tt
# -*- coding: utf-8 -*-
daglike = ['シュークリーム']
daghate = ['Flask', 'Django']
def main():
m = 0
while True:
print " /\\"
for _ in xrange(m):
print " ||"
if m > 3:
print "(`・m・´)"
else:
print "(>▽ <)ノ"
s = raw_input("あなたの好きなものは?(exitでやめる):")
if s in daglike:
if m > 0:
m -= 1
elif s in daghate:
m += 1
print "モヒっ"
elif s == 'exit':
print "(´ > ω < )にゃっふし!"
break
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment