Commit d2038e43 by BellCodeEditor

save project

parent f9f3df5c
Showing with 17 additions and 10 deletions
# 玩家出拳 import random
\ No newline at end of file player = input("请输入你要出的拳:")
print("你出的拳是:",player)
list=["石头","剪刀","布","布","布"]
computer = random.choice(list)
print("计算机出的是:",computer)
if computer == player:
print("平局")
elif player == "石头" and computer == "剪刀":
print("胜利")
elif player == "剪刀" and computer == "布":
print("胜利")
elif player == "布" and computer == "石头":
print("胜利")
else:
print("失败")
\ No newline at end of file
import random
list=["石头","剪刀","布"]
d=random.choice(list)
print(d)
\ No newline at end of file
a = input("出拳")
print("你出的是"+a)
\ 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