Commit a065cf90 by BellCodeEditor

save project

parent a068e6b4
Showing with 2 additions and 2 deletions
player = input("请玩家出石头/剪刀/布/) player = input("请玩家出石头/剪刀/布/)
print("请玩家出"+player) print("请玩家出"+player)
import random import random
list=["石头","剪刀","",] list=["石头","剪刀",""]
computer=random.choice(list) computer=random.choice(list)
print(computer) print(computer)
if player == computer: if player == computer:
print("啊,默契很足呢,前辈") print("啊,很有默契啊,前辈")
elif player=="剪刀"and computer=="": elif player=="剪刀"and 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