Commit ee9fe10e by BellCodeEditor

save project

parent 220fe62b
Showing with 15 additions and 0 deletions
import random
name=input("请出拳")
print("玩家请出拳:"+name)
# 玩家出拳
list=["剪刀""石头""布"]
d=random.chcoice(list)
print("电脑出拳:"+d)
if "print"=="comuter"
elif ["print"=="石头"=="剪刀 "]
elif ["print"=="布"=="石头"]
elif ["print"=="剪刀"=="布"]
print("恭喜你赢了")
elif:
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