diff --git a/diy.py b/diy.py new file mode 100644 index 0000000..d9bcc41 --- /dev/null +++ b/diy.py @@ -0,0 +1,7 @@ + +import random +computer=["石头","剪刀","布"] +a=random.choice(computer) +print('计算机出拳:'+a) +if play==computer: + print("平局") \ No newline at end of file