Commit 5a3b775b by BellCodeEditor

save project

parent bfe60f06
Showing with 13 additions and 3 deletions
name=input("你叫神马")
print(name+"我不好")# 我们都爱夸夸夸
\ No newline at end of file
player=input("玩家出拳")
print("玩家选择"+player)
import random
list=["剪刀","石头","布"]
computer=random.choice(list)
print("电脑选择"+computer)
if computer==player:
print("平局")
elif (computer=="石头" and player=="布") or (computer=="剪刀" and player=="石头") or (computer=="布" and player=="剪刀"):
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