Commit af59efc2 by BellCodeEditor

save project

parent 220fe62b
Showing with 13 additions and 0 deletions
import random
player = input("石头/剪刀/布")
print("玩家出"+player)
list = ["石头","剪刀","布"]
computer = random.choice(list)
print("人机出"+computer)
if player == computer
print("平局")
elif player == "石头" and computur == "剪刀" or www == "剪刀" and ooo == "布" or www == "布" and ooo == "石头"
print("胜利")
else www == "石头" and ooo == "布" or www == "剪刀" and ooo == "石头" or www == "布" and ooo == "剪刀"
print("输")
\ 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