Commit 36bff032 by BellCodeEditor

save project

parent 279eb1cc
Showing with 13 additions and 3 deletions
player=input("请出拳,石头,剪刀,布") p=input("请出拳,石头,剪刀,布")
print(player) print("player)
\ No newline at end of file import random
d=["石头","剪刀",""]
d=random.choice(d)
print("电脑: "+d)
d=random.choie(d)
print("电脑"+d)
if p==d:
print("平局")
elli (p=="" and d=="石头") or (p=="石头" and d=="剪刀") or (p=="剪刀" and d==""):
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