Commit 60c8c4de by BellCodeEditor

save project

parent 623fb1a6
Showing with 14 additions and 3 deletions
"""
请使用turtle模块画出五角星
"""
import random
player=input("请出钱")
cn = ["剪刀","石头","布"]
cn1=random.choice(cn)
print(cn1)
if player in cn:
if player=="剪刀" and cn1=="布" or player == "布" and cn1=="石头" or player == "石头" and cn1 == "剪刀":
print("胜利")
elif player == cn1:
print("平局")
else:
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