diff --git a/diy1.py b/diy1.py index 000af9b..f658767 100644 --- a/diy1.py +++ b/diy1.py @@ -32,4 +32,11 @@ print("玩家出拳:" + player) import random list=["石头","剪刀","布"] computer=random.choice(list) +print(computer)# 玩家出拳 +player = input("请出拳(石头/剪刀/布):") +print("玩家出拳:" + player) +# 计算机出拳 +import random +list=["石头","剪刀","布"] +computer=random.choice(list) print(computer) \ No newline at end of file