import random def mypalm(): a = ['剪刀','石頭','布'] b = random.choice(a) return b