Commit 43c169b2 by BellCodeEditor

save project

parent e81c580c
Showing with 18 additions and 3 deletions
# 玩家出拳 #辅导班
player=input("石头剪刀布") import random
print("玩家出拳"+player) player=input("玩家出拳")
print("玩家出拳"+play)
list=["剪刀""石头""布"]
computer=randon.chice(list)
print("电脑出拳"+computer)
if player==computer:
print("平局")
elif (player=="石头"and computer=="剪刀")
print("你赢啦")
elif (player=="剪刀"and computer=="布")
print("你赢啦")
elif (player=="布"and computer=="石头")
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