Commit 5bdcedc1 by BellCodeEditor

save project

parent 5c8a4457
Showing with 13 additions and 2 deletions
p=input("玩家出拳:") p=input("玩家出拳:")
print("玩家出:"+p) print("玩家出:"+p)
\ No newline at end of file import random
d=['石头',"剪刀","布"]
d=random.choice(d)
print("电脑出"+d)
if (P=d)
prind("平局")
elif (P=="剪刀" and d=="布") or p=="石头” or d=="剪刀"
print("我赢了")
eise:
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