题解 | #扑克牌大小#
扑克牌大小
https://www.nowcoder.com/practice/d290db02bacc4c40965ac31d16b1c3eb
card = input().split("-") left_s = card[0] right_s = card[1] left = card[0].split() right = card[1].split() order = ["3","4","5","6","7","8","9","10","J","Q","K","A","2","joker","JOKER"] if left == ["joker","JOKER"] or right == ["joker","JOKER"]: print("joker JOKER") elif len(left) == 4 and len(right) != 4: print(left_s) elif len(left) != 4 and len(right) == 4: print(right_s) elif len(left)==len(right): if order.index(left[0]) > order.index(right[0]): print(left_s) else: print(right_s) else: print("ERROR")