Commit bb37f30b by BellCodeEditor

save project

parent 1e33ec10
Showing with 12 additions and 9 deletions
import turtle
pen=turtle.Pen()
pen.fillcolor("green")
pen.begin_fill()
for i in range(36):
pen.forward(200)
pen.right(170)
pen.end_fill()
turtle.done()
import random
player=input("请选择:火,水,木")
print("我"+player)
list=["火","水","木"]
computer=random.choice(list)
print(computer)
if player==computer:
print("平")
elif(player=="火" and computer=="木") or (player=="木" and computer=="水") or(player=="水" and computer=="火"):
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