Commit cbe73850 by BellCodeEditor

auto save

parent 44c188b2
Showing with 9 additions and 10 deletions
...@@ -10,12 +10,11 @@ import random ...@@ -10,12 +10,11 @@ import random
list=("石头","剪刀","布") list=("石头","剪刀","布")
computer=random.choice(list) computer=random.choice(list)
print("电脑出"+"computer") print("电脑出"+"computer")
if player if player in list
if player == computer
print("平局")
elif player == "布" and computer == "石头" or computer =="剪刀"
player == "石头" and computer == "布" or computer =="剪刀"
player == "剪刀" and computer == "石头" or computer =="布":
print("你赢了") else:
else print("回去学拼音吧,孩子")
print("废物") \ No newline at end of file
\ No newline at end of file
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