Commit e4696927 by BellCodeEditor

save project

parent 23dfff73
Showing with 18 additions and 0 deletions
# 玩家出拳
import random
list["石头,剪刀,布"]
player=input("请玩家出拳")
print("玩家的选择是"+ player)
dd=random.choice(list)
print("人机的选择是"+ dd)
if dd=="石头" and player=="剪刀"
print("人机WIN")
else:
if dd=="布" and pleyer=="石头"
print("人机WIN")
else:
if dd=="剪" and pleyer=="布"
print("人机WIN")
else:
print("玩家WIN")
\ 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