diff --git a/star.py b/star.py index 75090a2..337da5f 100644 --- a/star.py +++ b/star.py @@ -2,6 +2,11 @@ player=input("玩家请出拳") print(player) import random -list =("石头""剪刀""布") +list =["石头","剪刀","布"] computer=random.choice(list) -print("计算机出拳"+computer) \ No newline at end of file +print("计算机出拳:"+computer) +if player == computer: + (print "平局") +elif player =="石头" + print("恭喜你赢啦") +elif