Commit b2b48ad5 by BellCodeEditor

save project

parent 443d9f82
Showing with 17 additions and 3 deletions
p=input("玩家,石头剪刀布.")
print("玩家出,"+p)
\ No newline at end of file
p=input("玩家,石头剪刀布.")
print("玩家出,"+p)
import random
d=["石头","剪刀","布"]
if p in d:
d=random.choice(d)
print("电脑出,"+d)
if(p==d):
print("平局")
elif(p=="剪刀" and d=="布") or p=="石头" and d=="剪刀":
print("我们赢")
else:
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