Commit 05591514 by BellCodeEditor

save project

parent 5b3ebb3c
Showing with 26 additions and 0 deletions
'''
color=input("请输入你的颜色")
import turtle
a=turtle.Pen()
a.pencolor(color)
for i in range(5):
a.forward(250)
a.left(144)
turtle.done()
'''
q=["石头","剪子","布"]
player=input("玩家出:(石头/剪子/布):")
if player in q:
print("玩家出"+player)
import random
w=random.choice(q)
print("电脑出"+w)
if (player=="石头" and w=="剪刀") or (player=="剪刀" and w=="布") or (player=="布" and w=="石头"):
print("你赢了")
elif player==w:
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