Commit e1c98057 by BellCodeEditor

auto save

parent b5c6bbbe
Showing with 686 additions and 0 deletions
import random
# 玩家拳出
q=input("请玩家出拳石头,剪刀,布")
print("玩家出:"+q)
list=["石头","剪刀","布"]
computer=random.choice(list)
print(computer)
if q:
if q==computer:
print('平局')
elif (q=="布" and computer=="石头"):
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