Commit 3298c45e by BellCodeEditor

save project

parent 3a39bde8
Showing with 11 additions and 2 deletions
people = input("请出拳,石头/剪刀/布")
print(people)
import random
list = ["石头","剪刀","布"]
pc =random.choice(list)
print(pc)
if people in list:
print("玩家出"+people+",电脑出"+pc)
if people == pc:
print("平局")
elif (people == "石头" and pc == "剪刀") or (people == "剪刀" and pc == "布") or (people == "布" and pc == "石头"):
print("恭喜,你赢了")
else:
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