Commit 804cd7bc by BellCodeEditor

auto save

parent efd4b20a
Showing with 10 additions and 28 deletions
import random
f=0
a=input("剪刀/石头/布")
print("玩家出"+a)
if(a=="剪刀"):
f=1
if(a=="石头"):
f=2
if(a=="布"):
f=3
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
import turtle
print("五角星")
p=turtle.Pen()
p.begin_fill()
for i in range(5):
p.forward(200)
p.left(144)
p.end_fill()
turtle.done()
\ 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