Commit 28b879a5 by BellCodeEditor

save project

parent 280fd138
Showing with 45 additions and 2 deletions
import random import random
list list = ["核弹","原子弹","氢弹"]
\ No newline at end of file c = random.choice(list)
p = input("请输入")
print("电脑"+c)
print("玩家"+p)
if p in list:
if p == c:
print("平局")
elif (p == "剪刀" and c =="布") or (p == "布" and c =="石头") or (p == "剪刀" and c =="布")
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