Commit d6623a1a by BellCodeEditor

save project

parent 220fe62b
Showing with 16 additions and 0 deletions
# 玩家出拳
import random
name=input("你想出什么,石头|剪刀、布")
print("玩家出"+name)
new_list=["剪刀,石头,布"]
hfhghh=random.choice(new_list)
print("技算机出拳"+hfhghh)
print("玩家出拳"+name)
if name==new_list:
print("平局")
elif (hfhghh=="石头"and name=="剪刀")or(hfhghh=="剪刀" and name=="布")or(hfhghh=="布" and name=="石头"):
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