Commit a1728798 by BellCodeEditor

save project

parent 5addfabf
Showing with 13 additions and 15 deletions
player=input("出什么(石头、剪刀、布)") c
print("玩家出拳:",player) \ No newline at end of file
import random
list=["石头","剪刀","布"]
computer=random.choice(list)
print(computer)
if player in list:
print("输入错了")
elif player==computer:
print("平局")
elif (player=="石头" and computer=="剪刀" and player=="剪刀" and computer=="布" and player=="布" and computer=="石头" ):
print("你输了")
else:
print("你赢了")
\ No newline at end of file
import turtle
pen = turtle.Pen
distance = 1
for i in range(300):
pen.forward(distance)
pen.right(91)
distance+=1
pen.hideturtle()
turtle.done()
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
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