Last active
February 20, 2017 14:24
-
-
Save nwiizo/c221e698c891cae39e155cf8433ae2a6 to your computer and use it in GitHub Desktop.
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
#!/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