Skip to content

Instantly share code, notes, and snippets.

@nwiizo
Last active February 20, 2017 14:24
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 nwiizo/c221e698c891cae39e155cf8433ae2a6 to your computer and use it in GitHub Desktop.
Save nwiizo/c221e698c891cae39e155cf8433ae2a6 to your computer and use it in GitHub Desktop.
#!/bin/bash python3
# -*- coding: utf-8 -*-
import sys
def love_sum():
a = sys.argv[1]
g = 0
for n in a[:]:
g = g + int(n)
g = (g//10)+(g%10)
return(int(g))
if __name__ == "__main__":
if love_sum() == 1:
print("1:才能も運もあるがハートが弱く小心者")
elif love_sum() == 2:
print("2:頭がよく直感も働くが短気で人からあれこれ言われたくない")
elif love_sum() == 3:
print("3:面倒見がよく芸術センスがあるがストレスを溜めやすい")
elif love_sum() == 4:
print("4:働き者でリーダシップがあるがクールで人間味が無い")
elif love_sum() == 5:
print("5:マイペースで安定志向だが恋愛下手")
elif love_sum() == 6:
print("6:八方美人で愛情深いが裏切りを許さない")
elif love_sum() == 7:
print("7:お調子ものでパワフルだがデリケートで傷つきやすい")
elif love_sum() == 8:
print("8:こだわりが強く金運もあるがものの考え方が極端")
elif love_sum() == 9:
print("9:記憶力がよく天才肌だが寂しがり屋で1番浮気しやすい")
else:
print("失敗してます")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment