diff --git a/diy1.py b/diy1.py index e8f512e..b732e6b 100644 --- a/diy1.py +++ b/diy1.py @@ -1,2 +1,6 @@ player=("玩家出拳剪刀/石头/布") input("玩家出拳+player") +impurt random +list=["石头","剪刀","布"] +computer=random.choice(list) +print("电脑出拳"+computer) \ No newline at end of file