Commit 6d7004be by BellCodeEditor

auto save

parent 9cc3dbe2
Showing with 3 additions and 3 deletions
import random import random
list=["剪刀,石头,布"] list=["剪刀","石头","布"]
whil=input("请出石头,剪刀,布") player=input("请出石头,剪刀,布")
diannao=random.choice(list) computer=random.choice(list)
if player==computer: if player==computer:
print("平局") print("平局")
elif player=="石头" and computer=="剪刀": elif player=="石头" and computer=="剪刀":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment