Commit 4a213c1e by BellCodeEditor

auto save

parent 52e165fe
Showing with 14 additions and 1 deletions
import turtle
pen=turtle.Pen()
pen.fillcolor(yello)
pen.begin_fill()
for i in range(5):
pen.forward(100)
pen.left(144)
pen.end_fill()
turtle.done()
\ No newline at end of file
import random
list=["石头","剪刀","布"]
player=input("石头,剪刀,布")
while player in list:
player=input("石头,剪刀,布")
if not player in list:
print("请您换一个,重新来吧")
computer=random.choice(list)
print("你出的是:"+player)
print("电脑出的是:"+computer)
......
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