Commit 7203c43d by BellCodeEditor

save project

parent b8e8418f
Showing with 43 additions and 3 deletions
neme=input("输入名字")
print(neme+"你好啊")
\ No newline at end of file
import random
p=input("玩家出石头/剪刀/布")
print("玩家出:"+p)
l=["石头"/"剪刀"/"布"]
d=random.choice(l)
print("电脑出:"+d)
if p in l:
if p==d:
print("平局")
else(p=="石头" and d=="剪刀"):
print("你赢了")
else(p=="布" and d=="石头"):
print("你赢了")
else(p=="剪刀" and d=="布"):
print("你赢了")
else:
print("他赢了")
else:
print("你输入错了")
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