Commit 3f5fcdda by BellCodeEditor

save project

parent 97be0254
Showing with 9 additions and 1 deletions
import random
plary=input("石头,剪刀,布")
list=["石头,剪刀,布"]
list=["石头","剪刀","布"]
print("玩家出:"+plary)
computer=random.choice(list)
print("计算基出:"+computer)
if plary==computer:
print("平局")
elif (plary=="石头"and computer=="剪刀")or(plary=="石头"and computer=="剪刀")or(plary=="布"and computer=="石头"):
print("计算基输")
else
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