Commit 804cd7bc by BellCodeEditor

auto save

parent efd4b20a
Showing with 10 additions and 28 deletions
import random import turtle
f=0 print("五角星")
a=input("剪刀/石头/布") p=turtle.Pen()
print("玩家出"+a) p.begin_fill()
if(a=="剪刀"): for i in range(5):
f=1 p.forward(200)
if(a=="石头"): p.left(144)
f=2 p.end_fill()
if(a=="布"): turtle.done()
f=3 \ No newline at end of file
a=f
z=["剪刀","石头","布"]
s=random.choice(z)
print("人机出"+s)
if(s=="剪刀"):
f=1
if(s=="石头"):
f=2
if(s=="布"):
f=3
s=f
if(s==a):
print("平")
elif(s<a):
print("S")
elif(a<s):
prunt("y")
\ 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