Commit a52f54dd by BellCodeEditor

auto save

parent e0cbc797
Showing with 108 additions and 4 deletions
我的娃达娃的 import random
wdawdawdaw player=input("请出拳:石头/剪刀/布")# 玩家出拳
伟大伟大伟大伟大 print("玩家出拳:"+player)
\ No newline at end of file a=["石头","剪刀","布"]
b=random.choice(a)
print("电脑出拳:"+b)
if player in a:
if player==b:
print("平局")
elif player=="石头" and b=="剪刀":
print("恭喜,你赢了")
elif player=="剪刀" and b=="布":
print("恭喜,你赢了")
elif player=="布" and b=="石头":
print("恭喜你,你赢了")
else:
print("很遗憾,你输了")
else:
print("输入错误,请重新输入")
\ No newline at end of file
a = 12
print(type(a))
# type(a)
# for i in range(100):
# if i%2==0:
# continue
# print(i)
# a=1
# for i in range(4):
# if i==3:
# break
# a=a+1
# else:
# a=a+2
# print(a)
# import random
# list=['1','2','3','4','5','6','7','8','9','0']
# lis = ""
# for i in range(6):
# lit = random.choice(list)
# list.remove(lit)
# lis = lis+lit
# print(lis)
# while True:
# a=input("请输入内容:")
# if len(a)%2==0:
# print(a[-1])
# else:
# print(a[len(a)//2])
# import random
# b = []
# for i in range(100):
# a = random.randint(0,10)
# b.append(a)
# print(b)
# 11 16 26
# 12 15 18 21 24 27
\ No newline at end of file
# while True:
# a = input("请输入内容:")
# if len(a)%2 == 1:
# print(a[len(a)//2])
# else:
# print(a)
import turtle
turtle.color('black')
turtle.pensize(10)
turtle.pendown()
turtle.forward(90)
turtle.left(120)
turtle.forward(180)
turtle.left(120)
turtle.forward(180)
turtle.left(120)
turtle.forward(90)
# turtle.left(90)
# turtle.forward(150)
# turtle.backward(150)
# turtle.right(90)
turtle.fillcolor('blue')
turtle.begin_fill()
turtle.circle(50)
turtle.end_fill()
turtle.left(90)
turtle.forward(150)
turtle.hideturtle()
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