Commit 49971e71 by BellCodeEditor

save project

parent 2629ef62
Showing with 18 additions and 3 deletions
neme=input("输入名字")
print(neme+"你好啊")
\ No newline at end of file
w=input("玩家出拳 石头,剪刀,布:")
print("玩家出:"+w)
import random
x=[ '石头','剪刀','布']
if w in x:
x=random.choice(x)
print("电脑"+x)
if w==x:
print("平局")
elif(w=="剪刀" and x=="布") or (w=="布" and x=="石头")or (w=="石头" and x=="剪刀"):
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